Type:
Class

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.

[]

[](command_name) Instance Public methods Returns a Command instance for

2015-04-07 22:57:38
run

run(args, build_args=nil) Instance Public methods Run the command specified

2015-04-07 23:26:21
process_args

process_args(args, build_args=nil) Instance Public methods

2015-04-07 23:12:31
instance

instance() Class Public methods Return the authoritative instance of the command

2015-04-07 22:42:55
new

new() Class Public methods Register all the subcommands supported by the gem

2015-04-07 22:45:51
instance 2

instance() Instance Public methods Returns self. Allows a

2015-04-07 23:10:01
unregister_command

unregister_command(command) Instance Public methods Unregister the

2015-04-07 23:29:26
find_command_possibilities

find_command_possibilities(cmd_name) Instance Public methods

2015-04-07 23:04:30
command_names

command_names() Instance Public methods Return a sorted list of all command

2015-04-07 22:59:06
register_command

register_command(command, obj=false) Instance Public methods Register the

2015-04-07 23:18:52