Class: Gem::Commands::PushCommand

Inherits:
Gem::Command
  • Object
show all
Defined in:
lib/rubygems-source-cli/commands/push_command.rb

Constant Summary collapse

RUBYGEMS_HOST =
"rubygems.org"

Instance Method Summary collapse

Instance Method Details

#executeObject



4
5
6
7
# File 'lib/rubygems-source-cli/commands/push_command.rb', line 4

def execute
  sign_into_rubygems if host_is_rubygems? && !Gem.configuration.rubygems_api_key
  send_gem get_one_gem_name
end

#sign_into_rubygemsObject



9
10
11
# File 'lib/rubygems-source-cli/commands/push_command.rb', line 9

def sign_into_rubygems
  
end