Class: Central::Cli::ExternalRegistries::DeleteCommand

Inherits:
Clamp::Command
  • Object
show all
Includes:
Common, StackOptions
Defined in:
lib/central/cli/external_registries/delete_command.rb

Instance Method Summary collapse

Methods included from StackOptions

included

Methods included from Common

#access_token=, #add_master, #api_url, #api_url=, #clear_current_stack, #client, #current_master, #current_master=, #current_master_index, #current_stack, #current_stack=, #ensure_custom_ssl_ca, #require_api_url, #require_current_stack, #require_token, #reset_client, #save_settings, #settings, #settings_filename

Instance Method Details

#executeObject



8
9
10
11
12
13
# File 'lib/central/cli/external_registries/delete_command.rb', line 8

def execute
  puts "DEPRECATION WARNING: Support for 'cm external-registry delete' will be dropped. Use 'cm external-registry remove' instead.".colorize(:red)
  require_api_url
  token = require_token
  client(token).delete("external_registries/#{current_stack}/#{name}")
end