The command manager registers and installs all the individual sub-commands supported by the gem command.

Extra commands can be provided by writing a rubygems_plugin.rb file in an installed gem. You should register your command against the Gem::CommandManager instance, like this:

# file rubygems_plugin.rb
require 'rubygems/command_manager'

Gem::CommandManager.instance.register_command :edit

You should put the implementation of your command in rubygems/commands.

# file rubygems/commands/edit_command.rb
class Gem::Commands::EditCommand < Gem::Command
  # ...
end

See Gem::Command for instructions on writing gem commands.

Constants
No documentation available
No documentation available
Class Methods

Return the authoritative instance of the command manager.

Register all the subcommands supported by the gem command.

Reset the authoritative instance of the command manager.

Instance Methods

Returns a Command instance for command_name

Return a sorted list of all command names as strings.

No documentation available
No documentation available
No documentation available

Returns self. Allows a CommandManager instance to stand in for the class itself.

No documentation available
No documentation available
No documentation available

Register the Symbol command as a gem command.

Run the command specified by args.

Unregister the Symbol command as a gem command.