Class: Superbot::Runner::CLI::RootCommand

Inherits:
Clamp::Command
  • Object
show all
Includes:
Cloud::Validations, Validations
Defined in:
lib/superbot/runner/cli/root_command.rb

Instance Method Summary collapse

Instance Method Details

#executeObject



17
18
19
20
21
22
23
24
25
26
27
# File 'lib/superbot/runner/cli/root_command.rb', line 17

def execute
  open_teleport

  file_extension = File.extname(recording)
  case file_extension
  when '.side' then Superbot::Runner::Side.run(recording)
  else abort "#{file_extension} scripts are not supported yet"
  end
ensure
  close_teleport
end