Class: Superbot::Cloud::CLI::Schedule::CreateCommand
- Inherits:
-
BaseCommand
- Object
- Clamp::Command
- LoginRequiredCommand
- OrganizationBasedCommand
- BaseCommand
- Superbot::Cloud::CLI::Schedule::CreateCommand
- Defined in:
- lib/superbot/cloud/cli/schedule/create_command.rb
Instance Method Summary collapse
Methods inherited from LoginRequiredCommand
Methods included from Validations
Instance Method Details
#execute ⇒ Object
14 15 16 |
# File 'lib/superbot/cloud/cli/schedule/create_command.rb', line 14 def execute schedule_test end |
#schedule_params ⇒ Object
23 24 25 26 27 28 29 30 31 32 |
# File 'lib/superbot/cloud/cli/schedule/create_command.rb', line 23 def schedule_params { test_name: name, region: region, organization_name: organization, parallel: bots, starts_at: starts_at, loop: loop_count }.compact end |
#schedule_test ⇒ Object
18 19 20 21 |
# File 'lib/superbot/cloud/cli/schedule/create_command.rb', line 18 def schedule_test Superbot::Cloud::Api.request(:schedule_test, params: schedule_params) puts "Cloud run has been scheduled" end |