diff options
-rw-r--r-- | lib/rubygems/commands/push_command.rb | 39 |
1 files changed, 36 insertions, 3 deletions
@@ -29,6 +29,8 @@ command. For further discussion see the help for the yank command. def initialize super 'push', 'Push a gem up to the gem server', :host => self.host add_proxy_option add_key_option @@ -36,20 +38,41 @@ command. For further discussion see the help for the yank command. 'Push to another gemcutter-compatible host', ' (e.g. https://rubygems.org)') do |value, options| options[:host] = value end @host = nil end def execute - @host = options[:host] sign_in @host - send_gem get_one_gem_name end - def send_gem name args = [:post, "api/v1/gems"] latest_rubygems_version = Gem.latest_rubygems_version @@ -100,5 +123,15 @@ You can upgrade or downgrade to the latest release version with: with_response response end end |