Class: Ap4r::Mongrel::Help
- Includes:
- Command::Base
- Defined in:
- lib/ap4r/mongrel_ap4r.rb
Instance Method Summary collapse
Methods included from Command::Base
Instance Method Details
#run ⇒ Object
45 46 47 48 49 50 51 52 53 54 |
# File 'lib/ap4r/mongrel_ap4r.rb', line 45 def run puts "Available AP4R commands are:\n\n" Mongrel::Command::Registry.instance.commands.each do |name| if name =~ /#{Command::PREFIX}/ name = name[Command::PREFIX.length .. -1] end puts " - #{name[1 .. -1]}\n" end puts "\nfor further help, run each command with -h option to get help." end |