Linux vps-61133.fhnet.fr 4.9.0-19-amd64 #1 SMP Debian 4.9.320-2 (2022-06-30) x86_64
Apache/2.4.25 (Debian)
Server IP : 93.113.207.21 & Your IP : 216.73.216.112
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
lib /
ruby /
2.3.0 /
rubygems /
commands /
Delete
Unzip
Name
Size
Permission
Date
Action
build_command.rb
1.48
KB
-rw-r--r--
2016-11-21 08:58
cert_command.rb
7.67
KB
-rw-r--r--
2016-11-21 08:58
check_command.rb
2.23
KB
-rw-r--r--
2016-11-21 08:58
cleanup_command.rb
3.88
KB
-rw-r--r--
2016-11-21 08:58
contents_command.rb
4.09
KB
-rw-r--r--
2016-11-21 08:58
dependency_command.rb
5.16
KB
-rw-r--r--
2016-11-21 08:58
environment_command.rb
4.77
KB
-rw-r--r--
2016-11-21 08:58
fetch_command.rb
1.78
KB
-rw-r--r--
2016-11-21 08:58
generate_index_command.rb
2.55
KB
-rw-r--r--
2016-11-21 08:58
help_command.rb
10.15
KB
-rw-r--r--
2016-11-21 08:58
install_command.rb
9.54
KB
-rw-r--r--
2016-11-21 08:58
list_command.rb
940
B
-rw-r--r--
2016-11-21 08:58
lock_command.rb
2.7
KB
-rw-r--r--
2016-11-21 08:58
mirror_command.rb
624
B
-rw-r--r--
2016-11-21 08:58
open_command.rb
1.65
KB
-rw-r--r--
2016-11-21 08:58
outdated_command.rb
852
B
-rw-r--r--
2016-11-21 08:58
owner_command.rb
2.44
KB
-rw-r--r--
2021-12-06 00:55
pristine_command.rb
5.14
KB
-rw-r--r--
2016-11-21 08:58
push_command.rb
2.45
KB
-rw-r--r--
2016-11-21 08:58
query_command.rb
9.05
KB
-rw-r--r--
2021-12-06 00:55
rdoc_command.rb
2.49
KB
-rw-r--r--
2016-11-21 08:58
search_command.rb
885
B
-rw-r--r--
2016-11-21 08:58
server_command.rb
2.38
KB
-rw-r--r--
2016-11-21 08:58
setup_command.rb
13
KB
-rw-r--r--
2016-11-21 08:58
sources_command.rb
5.21
KB
-rw-r--r--
2016-11-21 08:58
specification_command.rb
3.31
KB
-rw-r--r--
2016-11-21 08:58
stale_command.rb
962
B
-rw-r--r--
2016-11-21 08:58
uninstall_command.rb
4.52
KB
-rw-r--r--
2016-11-21 08:58
unpack_command.rb
4.54
KB
-rw-r--r--
2016-11-21 08:58
update_command.rb
6.98
KB
-rw-r--r--
2016-11-21 08:58
which_command.rb
2.17
KB
-rw-r--r--
2016-11-21 08:58
yank_command.rb
2.58
KB
-rw-r--r--
2016-11-21 08:58
Save
Rename
# frozen_string_literal: true require 'rubygems/command' require 'rubygems/local_remote_options' require 'rubygems/gemcutter_utilities' require 'rubygems/text' class Gem::Commands::OwnerCommand < Gem::Command include Gem::Text include Gem::LocalRemoteOptions include Gem::GemcutterUtilities def description # :nodoc: <<-EOF The owner command lets you add and remove owners of a gem on a push server (the default is https://rubygems.org). The owner of a gem has the permission to push new versions, yank existing versions or edit the HTML page of the gem. Be careful of who you give push permission to. EOF end def arguments # :nodoc: "GEM gem to manage owners for" end def usage # :nodoc: "#{program_name} GEM" end def initialize super 'owner', 'Manage gem owners of a gem on the push server' add_proxy_option add_key_option defaults.merge! :add => [], :remove => [] add_option '-a', '--add EMAIL', 'Add an owner' do |value, options| options[:add] << value end add_option '-r', '--remove EMAIL', 'Remove an owner' do |value, options| options[:remove] << value end add_option '-h', '--host HOST', 'Use another gemcutter-compatible host' do |value, options| options[:host] = value end end def execute @host = options[:host] sign_in name = get_one_gem_name add_owners name, options[:add] remove_owners name, options[:remove] show_owners name end def show_owners name response = rubygems_api_request :get, "api/v1/gems/#{name}/owners.yaml" do |request| request.add_field "Authorization", api_key end with_response response do |resp| owners = Gem::SafeYAML.load clean_text(resp.body) say "Owners for gem: #{name}" owners.each do |owner| say "- #{owner['email']}" end end end def add_owners name, owners manage_owners :post, name, owners end def remove_owners name, owners manage_owners :delete, name, owners end def manage_owners method, name, owners owners.each do |owner| begin response = rubygems_api_request method, "api/v1/gems/#{name}/owners" do |request| request.set_form_data 'email' => owner request.add_field "Authorization", api_key end action = method == :delete ? "Removing" : "Adding" with_response response, "#{action} #{owner}" rescue # ignore end end end end