class Superbot::Cloud::CLI::Schedule::CancelCommand

Public Instance Methods

delete_schedule() click to toggle source
# File lib/superbot/cloud/cli/schedule/cancel_command.rb, line 14
def delete_schedule
  id_list.each do |schedule_id|
    Superbot::Cloud::Api.request(:cancel_schedule, params: { id: schedule_id, organization_name: organization })
    puts "Test schedule #{schedule_id} successfully cancelled"
  rescue SystemExit
    p # skip to next schedule
  end
end
execute() click to toggle source
# File lib/superbot/cloud/cli/schedule/cancel_command.rb, line 10
def execute
  delete_schedule
end