Class: Rockette::CLI
- Inherits:
-
Thor
- Object
- Thor
- Rockette::CLI
- Defined in:
- lib/rockette/cli.rb
Overview
Handle actions and parameters
Constant Summary collapse
- Error =
Error raised by this runner
Class.new(StandardError)
Instance Method Summary collapse
Instance Method Details
#config ⇒ Object
60 61 62 63 64 65 66 67 |
# File 'lib/rockette/cli.rb', line 60 def config(*) if [:help] invoke :help, ["config"] else require_relative "commands/config" Rockette::Commands::Config.new().execute end end |
#deploy ⇒ Object
29 30 31 32 33 34 35 36 |
# File 'lib/rockette/cli.rb', line 29 def deploy(*) if [:help] invoke :help, ["deploy"] else require_relative "commands/deploy" Rockette::Commands::Deploy.new().execute end end |
#export ⇒ Object
48 49 50 51 52 53 54 55 |
# File 'lib/rockette/cli.rb', line 48 def export(*) if [:help] invoke :help, ["export"] else require_relative "commands/export" Rockette::Commands::Export.new().execute end end |
#interactive ⇒ Object
72 73 74 75 76 77 78 79 |
# File 'lib/rockette/cli.rb', line 72 def interactive(*) if [:help] invoke :help, ["interactive"] else require_relative "commands/interactive" Rockette::Commands::Interactive.new().execute end end |