Class: Superbot::Cloud::CLI::Run::CreateCommand

Inherits:
BaseCommand show all
Defined in:
lib/superbot/cloud/cli/run/create_command.rb

Instance Method Summary collapse

Methods inherited from LoginRequiredCommand

#run, run

Methods included from Validations

#require_login

Instance Method Details

#executeObject



11
12
13
14
# File 'lib/superbot/cloud/cli/run/create_command.rb', line 11

def execute
  Superbot::Cloud::Api.request(:create_interactive_run, params: run_params)
  puts "Cloud interactive run has been created"
end

#run_paramsObject



16
17
18
19
20
21
22
# File 'lib/superbot/cloud/cli/run/create_command.rb', line 16

def run_params
  {
    organization_name: organization,
    test_name: name,
    region: region
  }.compact
end