method

manage_owners

Importance_0
v2_1_10 - Show latest stable - 0 notes - Class: OwnerCommand
manage_owners(method, name, owners) public

No documentation

This method has no description. You can help the Ruby community by adding new notes.

Hide source
# File lib/rubygems/commands/owner_command.rb, line 81
  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

        with_response response, "Removing #{owner}"
      rescue
        # ignore
      end
    end
  end
Register or log in to add new notes.