Class: Gem::Commands::ExportCommand

Inherits:
Gem::Command
  • Object
show all
Defined in:
lib/rubygems/commands/export_command.rb

Instance Method Summary collapse

Constructor Details

#initializeExportCommand

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

#executeObject



8
9
10
# File 'lib/rubygems/commands/export_command.rb', line 8

def execute
  export(get_one_gem_name)
end

#usageObject



12
13
14
# File 'lib/rubygems/commands/export_command.rb', line 12

def usage
  "#{program_name} GEMNAME"
end