Class: Superbot::CLI::RunCommand
- Inherits:
-
Clamp::Command
- Object
- Clamp::Command
- Superbot::CLI::RunCommand
- Includes:
- Validations
- Defined in:
- lib/superbot/cli/run_command.rb
Instance Method Summary collapse
Methods included from Validations
#validates_browser_type, #validates_project_path
Instance Method Details
#execute ⇒ Object
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
# File 'lib/superbot/cli/run_command.rb', line 17 def execute script = File.read(File.join(path, 'main.rb')) @teleport = Thread.new do Superbot::CLI::TeleportCommand.run(nil, ARGV[2..-1], context) end = Superbot::::Runner.new(browser: browser, region: region) .run(script) puts .test_result puts "Press ENTER to exit" $stdin.gets ensure @teleport&.kill &.kill_session end |