Class: Boson::DefaultCommandsRunner

Inherits:
Runner show all
Defined in:
lib/boson/runner.rb

Overview

Defines default commands that are available to executables i.e. Runner.start

Constant Summary

Constants inherited from BareRunner

BareRunner::DEFAULT_LIBRARIES, BareRunner::GLOBAL_OPTIONS

Instance Method Summary collapse

Methods inherited from Runner

abort_with, app_name, default_libraries, display_command_help, display_help, execute, execute_command, inherited, start

Methods inherited from BareRunner

allowed_argument_error?, execute_command, no_command_error, option_parser

Methods included from BareRunner::API

#abort_with, #all_libraries, #default_libraries, #init, #start

Instance Method Details

#help(cmd) ⇒ Object



94
95
96
97
# File 'lib/boson/runner.rb', line 94

def help(cmd)
  (cmd_obj = Command.find(cmd)) ? Runner.current.display_command_help(cmd_obj) :
    self.class.no_command_error(cmd)
end