Class: Gem::Commands::FuryCommand
- Inherits:
-
Gem::Command
- Object
- Gem::Command
- Gem::Commands::FuryCommand
- Defined in:
- lib/rubygems/commands/fury_command.rb
Instance Method Summary collapse
- #arguments ⇒ Object
- #description ⇒ Object
- #execute ⇒ Object
-
#initialize ⇒ FuryCommand
constructor
A new instance of FuryCommand.
- #usage ⇒ Object
Constructor Details
#initialize ⇒ FuryCommand
Returns a new instance of FuryCommand.
19 20 21 22 23 24 |
# File 'lib/rubygems/commands/fury_command.rb', line 19 def initialize super 'fury', description add_option('-a', '--as USERNAME', 'Impersonate another account') do |value, | [:as] = value end end |
Instance Method Details
#arguments ⇒ Object
11 12 13 |
# File 'lib/rubygems/commands/fury_command.rb', line 11 def arguments 'GEM built gem file to push' end |
#description ⇒ Object
7 8 9 |
# File 'lib/rubygems/commands/fury_command.rb', line 7 def description 'Push a private gem to your Gemfury account' end |
#execute ⇒ Object
26 27 28 29 30 |
# File 'lib/rubygems/commands/fury_command.rb', line 26 def execute opts = .dup args = opts.delete(:args) Gemfury::Command::App.send(:dispatch, 'push', args, opts, {}) end |
#usage ⇒ Object
15 16 17 |
# File 'lib/rubygems/commands/fury_command.rb', line 15 def usage "#{program_name} GEM" end |