Class: Gem::Commands::ExportCommand
- Inherits:
-
Gem::Command
- Object
- Gem::Command
- Gem::Commands::ExportCommand
- Defined in:
- lib/rubygems/commands/export_command.rb
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize ⇒ ExportCommand
constructor
A new instance of ExportCommand.
- #usage ⇒ Object
Constructor Details
#initialize ⇒ ExportCommand
Returns a new instance of ExportCommand.
4 5 6 |
# File 'lib/rubygems/commands/export_command.rb', line 4 def initialize super 'export', 'Copy a gem and its dependencies into the current directory' end |
Instance Method Details
#execute ⇒ Object
8 9 10 |
# File 'lib/rubygems/commands/export_command.rb', line 8 def execute export(get_one_gem_name) end |
#usage ⇒ Object
12 13 14 |
# File 'lib/rubygems/commands/export_command.rb', line 12 def usage "#{program_name} GEMNAME" end |