class Superbot::Cloud::CLI::Run::ScaleCommand

Public Instance Methods

execute() click to toggle source
# File lib/superbot/cloud/cli/run/scale_command.rb, line 18
def execute
  scale_run
end
scale_run() click to toggle source
# 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