U:RDoc::NormalClass[iI"CommandManager:ETI"Gem::CommandManager;TI" Object;To:RDoc::Markup::Document: @parts[o;;[o:RDoc::Markup::Paragraph;[I"PThe command manager registers and installs all the individual sub-commands ;TI""supported by the gem command.;To:RDoc::Markup::BlankLineo; ;[I"DExtra commands can be provided by writing a rubygems_plugin.rb ;TI"Mfile in an installed gem. You should register your command against the ;TI"-Gem::CommandManager instance, like this:;T@o:RDoc::Markup::Verbatim;[ I"# file rubygems_plugin.rb ;TI"(require 'rubygems/command_manager' ;TI" ;TI"9Gem::CommandManager.instance.register_command :edit ;T: @format0o; ;[I"LYou should put the implementation of your command in rubygems/commands.;T@o; ;[ I".# file rubygems/commands/edit_command.rb ;TI"5class Gem::Commands::EditCommand < Gem::Command ;TI" # ... ;TI" end ;T; 0o; ;[I"?See Gem::Command for instructions on writing gem commands.;T: @fileI"$lib/rubygems/command_manager.rb;T:0@omit_headings_from_table_of_contents_below0; 0;0[[[[I"Gem::Text;To;;[; @*;0I"$lib/rubygems/command_manager.rb;T[I"Gem::UserInteraction;To;;[; @*;0@2[[I" class;T[[: public[[I" instance;F@2[I"new;T@2[I" reset;F@2[:protected[[: private[[I" instance;T[[;[[I"[];F@2[I"command_names;F@2[I"find_command;F@2[I"find_command_possibilities;F@2[I" instance;F@2[I"process_args;F@2[I"register_command;F@2[I"run;F@2[I"unregister_command;F@2[;[[;[[I"load_and_instantiate;F@2[[U:RDoc::Context::Section[i0o;;[; 0;0[@*@*cRDoc::TopLevel