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
96 97 98 99 100 101 |
# File 'lib/command_kit/main.rb', line 96 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.
113 114 |
# File 'lib/command_kit/main.rb', line 113 def run(*args) end |