Class: Kontena::Plugin::Cloud::Organization::RemoveCommand
- Inherits:
-
Command
- Object
- Clamp::Command
- Command
- Kontena::Plugin::Cloud::Organization::RemoveCommand
- Includes:
- Cli::Common
- Defined in:
- lib/kontena/plugin/cloud/organization/remove_command.rb
Constant Summary
Constants included from CloudCommand
CloudCommand::PLATFORM_NOT_SELECTED_ERROR
Instance Method Summary collapse
Methods included from CloudCommand
#verify_current_grid, #verify_current_master, #verify_current_master_token
Instance Method Details
#execute ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/kontena/plugin/cloud/organization/remove_command.rb', line 9 def execute confirm_command(name) unless forced? spinner "Removing organization #{pastel.cyan(name)}" do cloud_client.delete("/organizations/#{name}") end end |