Class: Webroar::Command::Help
- Inherits:
-
Object
- Object
- Webroar::Command::Help
- Defined in:
- lib/command_runner.rb
Overview
class CommandRunner
Instance Method Summary collapse
Instance Method Details
#run(cmd) ⇒ Object
399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 |
# File 'lib/command_runner.rb', line 399 def run (cmd) case cmd when nil, "help"; puts HELP when "install"; puts HELP_INSTALL when "uninstall"; puts HELP_UNINSTALL when "clear"; puts HELP_CLEAR when "start"; puts HELP_START when "stop"; puts HELP_STOP when "restart"; puts HELP_RESTART when "add"; puts HELP_ADD when "remove"; puts HELP_REMOVE when "test"; puts HELP_TEST else puts "WARNING: Unknown command #{cmd}. See 'webroar help'." end end |