Class Gem::CommandManager
In: lib/rubygems/command_manager.rb
Parent: Object

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'

  class Gem::Commands::EditCommand < Gem::Command
    # ...
  end

  Gem::CommandManager.instance.register_command :edit

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

Methods

Included Modules

Gem::UserInteraction

Public Class methods

Return the authoritative instance of the command manager.

Register all the subcommands supported by the gem command.

Public Instance methods

Return the registered command from the command name.

Return a sorted list of all command names (as strings).

Register the command object.

Run the config specified by args.

[Validate]