Class: Lotus::Cli
- Inherits:
-
Thor
- Object
- Thor
- Lotus::Cli
- Defined in:
- lib/lotus/cli.rb
Overview
Instance Method Summary collapse
- #console ⇒ Object
- #new(application_name) ⇒ Object
- #routes ⇒ Object
- #server ⇒ Object
- #version ⇒ Object
Instance Method Details
#console ⇒ Object
56 57 58 59 60 61 62 |
# File 'lib/lotus/cli.rb', line 56 def console if [:help] invoke :help, ['console'] else Lotus::Commands::Console.new().start end end |
#new(application_name) ⇒ Object
82 83 84 85 86 87 88 89 90 |
# File 'lib/lotus/cli.rb', line 82 def new(application_name) if [:help] invoke :help, ['new'] elsif [:architecture] == 'app' Lotus::Commands::New::App.new(, application_name).start else Lotus::Commands::New::Container.new(, application_name).start end end |
#routes ⇒ Object
98 99 100 101 102 103 104 105 |
# File 'lib/lotus/cli.rb', line 98 def routes if [:help] invoke :help, ['routes'] else require 'lotus/commands/routes' Lotus::Commands::Routes.new().start end end |