Class: Boothby::CLI
- Inherits:
-
Thor
- Object
- Thor
- Boothby::CLI
- Defined in:
- lib/boothby/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
#seed ⇒ Object
26 27 28 29 30 31 32 33 |
# File 'lib/boothby/cli.rb', line 26 def seed(*) if [:help] invoke(:help, ['seed']) else require_relative('commands/seed') Boothby::Commands::Seed.new().execute end end |
#setup ⇒ Object
54 55 56 57 58 59 60 61 |
# File 'lib/boothby/cli.rb', line 54 def setup(*) if [:help] invoke(:help, ['setup']) else require_relative('commands/setup') Boothby::Commands::Setup.new().execute end end |