Class: Superbot::Cloud::CLI::Run::ScaleCommand

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

Instance Method Summary collapse

Methods inherited from LoginRequiredCommand

#run, run

Methods included from Validations

#require_login

Instance Method Details

#executeObject



18
19
20
# File 'lib/superbot/cloud/cli/run/scale_command.rb', line 18

def execute
  scale_run
end

#scale_runObject



22
23
24
25
26
27
# File 'lib/superbot/cloud/cli/run/scale_command.rb', line 22

def scale_run
  api_response = Superbot::Cloud::Api.request(:update_interactive_run, params: { id: id, organization_name: organization, parallel: bots, loop: loop_count }.compact)
  puts "Scaled"
  puts "bots: #{api_response[:parallel]}"
  puts "loop: #{api_response[:loop]}"
end