Class: Guac::CLI
- Inherits:
-
Thor
- Object
- Thor
- Guac::CLI
- Defined in:
- lib/guac/cli.rb
Overview
Handle the application command line parsing and the dispatch to various command objects
Constant Summary collapse
- Error =
Error raised by this runner
Class.new(StandardError)
Instance Method Summary collapse
Instance Method Details
#setup ⇒ Object
21 22 23 24 25 26 27 28 |
# File 'lib/guac/cli.rb', line 21 def setup(*) if [:help] invoke :help, ['setup'] else require_relative 'commands/setup' Guac::Commands::Setup.new(, self).execute end end |
#status ⇒ Object
32 33 34 35 36 37 38 39 |
# File 'lib/guac/cli.rb', line 32 def status(*) if [:help] invoke :help, ['status'] else require_relative 'commands/status' Guac::Commands::Status.new().execute end end |