Sha256: bb21f46af14a84a055e16a7bb934a6cb665ac20cf164a8e0115b4b30d5be348b
Contents?: true
Size: 1.71 KB
Versions: 8
Compression:
Stored size: 1.71 KB
Contents
require_relative 'console' require_relative 'migration' require_relative 'services' require_relative 'suite' require_relative 'suites' require_relative 'new' require_relative '../../version' module Inferno module CLI class Main < Thor desc 'console', 'Start an interactive console session with Inferno' def console Console.new.run end desc 'migrate', 'Run database migrations' def migrate Migration.new.run end desc 'start', 'Start Inferno' option :watch, default: false, type: :boolean, desc: 'Automatically restart Inferno when a file is changed.' 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 options[: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 desc 'suites', 'List available test suites' def suites Suites.new.run end desc 'services stop/start', 'Start or stop background services' subcommand 'services', Services desc 'suite SUBCOMMAND ...ARGS', 'Perform suite-based operations' subcommand 'suite', Suite register(New, 'new', 'new TEST_KIT_NAME', 'Run `inferno new --help` for full help') desc 'version', "Output Inferno core version (#{Inferno::VERSION})" def version puts "Inferno Core v#{Inferno::VERSION}" end end end end
Version data entries
8 entries across 8 versions & 1 rubygems