Class: Inferno::CLI::Main

Inherits:
Thor
  • Object
show all
Defined in:
lib/inferno/apps/cli/main.rb

Instance Method Summary collapse

Instance Method Details

#consoleObject



11
12
13
# File 'lib/inferno/apps/cli/main.rb', line 11

def console
  Console.new.run
end

#migrateObject



16
17
18
# File 'lib/inferno/apps/cli/main.rb', line 16

def migrate
  Migration.new.run
end

#startObject



21
22
23
24
25
26
27
# File 'lib/inferno/apps/cli/main.rb', line 21

def start
  if `gem list -i foreman`.chomp == 'false'
    puts "You must install foreman with 'gem install foreman' prior to running inferno."
  end

  system 'foreman start --env=/dev/null'
end

#suitesObject



30
31
32
# File 'lib/inferno/apps/cli/main.rb', line 30

def suites
  Suites.new.run
end