Module: CommandKit::Main
- Extended by:
- ModuleMethods
- Included in:
- Arguments, Command, Options::Parser
- Defined in:
- lib/command_kit/main.rb
Overview
Defined Under Namespace
Modules: ClassMethods, ModuleMethods
Instance Method Summary collapse
-
#main(argv = []) ⇒ Integer
Place-holder
main
method, which parses options, before calling #run. -
#run(*args) ⇒ Object
abstract
Place-holder method for command business logic.
Methods included from ModuleMethods
Instance Method Details
#main(argv = []) ⇒ Integer
94 95 96 97 98 99 |
# File 'lib/command_kit/main.rb', line 94 def main(argv=[]) run(*argv) return 0 rescue SystemExit => system_exit return system_exit.status end |
#run(*args) ⇒ Object
This method is abstract.
Place-holder method for command business logic.
111 112 |
# File 'lib/command_kit/main.rb', line 111 def run(*args) end |