Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Add option to specify host on cmd line. Helpful if you manage several…

… geminaboxes.

Signed-off-by: Tom Lea <commit@tomlea.co.uk>
  • Loading branch information...
commit 3b68238eaf848675113ae0139d738008de1eb698 1 parent 01abc65
Martin Moen Wulffeld wulffeld authored cwninja committed
2  geminabox.gemspec
... ... @@ -1,6 +1,6 @@
1 1 Gem::Specification.new do |s|
2 2 s.name = 'geminabox'
3   - s.version = '0.2.9'
  3 + s.version = '0.2.10'
4 4 s.summary = 'Really simple rubygem hosting'
5 5 s.description = 'A sinatra based gem hosting app, with client side gem push style functionality.'
6 6 s.author = 'Tom Lea'
6 lib/rubygems/commands/inabox_command.rb
@@ -19,6 +19,10 @@ def initialize
19 19 add_option('-c', '--configure', "Configure GemInABox") do |value, options|
20 20 options[:configure] = true
21 21 end
  22 +
  23 + add_option('-g', '--host HOST', "Host to upload to.") do |value, options|
  24 + options[:host] = value
  25 + end
22 26 end
23 27
24 28 def execute
@@ -88,7 +92,7 @@ def configure
88 92 end
89 93
90 94 def geminabox_host
91   - geminabox_host ||= Gem.configuration.load_file(config_path)[:host]
  95 + @geminabox_host ||= options[:host] || Gem.configuration.load_file(config_path)[:host]
92 96 end
93 97
94 98 def geminabox_host=(host)

0 comments on commit 3b68238

Please sign in to comment.
Something went wrong with that request. Please try again.