Sha256: e93fc3f13ddc9ef5fc83f73d966768b1d8efae2ceb3070fafc2bf9d51a719566
Contents?: true
Size: 584 Bytes
Versions: 119
Compression:
Stored size: 584 Bytes
Contents
module Kontena::Cli::ExternalRegistries class RemoveCommand < Kontena::Command include Kontena::Cli::Common parameter "NAME", "External registry name to remove" option "--force", :flag, "Force remove", default: false, attribute_name: :forced def execute require_api_url token = require_token confirm_command(name) unless forced? spinner "Removing #{name.colorize(:cyan)} external-registry from #{current_grid.colorize(:cyan)} grid " do client(token).delete("external_registries/#{current_grid}/#{name}") end end end end
Version data entries
119 entries across 119 versions & 1 rubygems