Class: Superbot::Cloud::CLI::Test::DeleteCommand

Inherits:
BaseCommand show all
Defined in:
lib/superbot/cloud/cli/test/delete_command.rb

Instance Method Summary collapse

Methods inherited from LoginRequiredCommand

#run, run

Methods included from Validations

#require_login

Instance Method Details

#delete_testObject



14
15
16
17
18
19
20
21
# File 'lib/superbot/cloud/cli/test/delete_command.rb', line 14

def delete_test
  name_list.each do |name|
    Superbot::Cloud::Api.request(:delete_test, params: { name: name, organization_name: organization })
    puts "Tests #{name} successfully deleted"
  rescue SystemExit => e
    puts "Test #{name} removal failed: #{e.message}"
  end
end

#executeObject



10
11
12
# File 'lib/superbot/cloud/cli/test/delete_command.rb', line 10

def execute
  delete_test
end