lib/rubygems/commands/inabox_command.rb in geminabox-0.10.1 vs lib/rubygems/commands/inabox_command.rb in geminabox-0.11.0

- old
+ new

@@ -21,10 +21,14 @@ end add_option('-g', '--host HOST', "Host to upload to.") do |value, options| options[:host] = value end + + add_option('-o', '--overwrite', "Overwrite Gem.") do |value, options| + options[:overwrite] = true + end end def last_minute_requires! require 'yaml' require File.expand_path("../../../geminabox_client.rb", __FILE__) @@ -49,10 +53,10 @@ client = GeminaboxClient.new(geminabox_host) gemfiles.each do |gemfile| say "Pushing #{File.basename(gemfile)} to #{client.url}..." begin - say client.push(gemfile) + say client.push(gemfile, options) rescue GeminaboxClient::Error => e alert_error e.message terminate_interaction(1) end end