Class: Inferno::CLI::Main
- Inherits:
-
Thor
- Object
- Thor
- Inferno::CLI::Main
- Defined in:
- lib/inferno/apps/cli/main.rb
Instance Method Summary collapse
Instance Method Details
#console ⇒ Object
11 12 13 |
# File 'lib/inferno/apps/cli/main.rb', line 11 def console Console.new.run end |
#migrate ⇒ Object
16 17 18 |
# File 'lib/inferno/apps/cli/main.rb', line 16 def migrate Migration.new.run end |
#start ⇒ Object
25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 |
# File 'lib/inferno/apps/cli/main.rb', line 25 def start command = 'foreman start --env=/dev/null' if `gem list -i foreman`.chomp == 'false' puts "You must install foreman with 'gem install foreman' prior to running Inferno." end if [:watch] if `gem list -i rerun`.chomp == 'false' puts "You must install 'rerun' with 'gem install rerun' to restart on file changes." end command = "rerun \"#{command}\" --background" end exec command end |