Class: Superbot::Cloud::CLI::Run::ScaleCommand
- Inherits:
-
BaseCommand
- Object
- Clamp::Command
- LoginRequiredCommand
- OrganizationBasedCommand
- BaseCommand
- Superbot::Cloud::CLI::Run::ScaleCommand
- Defined in:
- lib/superbot/cloud/cli/run/scale_command.rb
Instance Method Summary collapse
Methods inherited from LoginRequiredCommand
Methods included from Validations
Instance Method Details
#execute ⇒ Object
18 19 20 |
# File 'lib/superbot/cloud/cli/run/scale_command.rb', line 18 def execute scale_run end |
#scale_run ⇒ Object
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 |