Class | Gem::Command |
In: |
lib/rubygems/command.rb
|
Parent: | Object |
Base class for all Gem commands.
Option | = | Struct.new(:short, :long, :description, :handler) |
command | [R] | |
defaults | [RW] | |
options | [R] | |
program_name | [RW] | |
summary | [RW] |
Override to provide details of the arguments a command takes. It should return a left-justified string, one argument per line.
Override to display the default values of the command options. (similar to arguments, but displays the default values).
Merge a set of command options with the set of default options (without modifying the default option hash).
Call the given block when invoked.
Normal command invocations just executes the execute method of the command. Specifying an invocation block allows the test methods to override the normal action of a command to determine that it has been invoked correctly.