Class: Superbot::Cloud::CLI::Test::DeleteCommand
- Inherits:
-
BaseCommand
- Object
- Clamp::Command
- LoginRequiredCommand
- OrganizationBasedCommand
- BaseCommand
- Superbot::Cloud::CLI::Test::DeleteCommand
- Defined in:
- lib/superbot/cloud/cli/test/delete_command.rb
Instance Method Summary collapse
Methods inherited from LoginRequiredCommand
Methods included from Validations
Instance Method Details
#delete_test ⇒ Object
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.}" end end |
#execute ⇒ Object
10 11 12 |
# File 'lib/superbot/cloud/cli/test/delete_command.rb', line 10 def execute delete_test end |