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
# File 'lib/superbot/cloud/cli/test/delete_command.rb', line 14

def delete_test
  Superbot::Cloud::Api.request(:delete_test, params: { name: name, organization_name: organization })
  puts "Tests successfully deleted"
end

#executeObject



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

def execute
  delete_test
end