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

Version Path
kontena-cli-1.4.3 lib/kontena/cli/external_registries/remove_command.rb
kontena-cli-1.4.3.rc1 lib/kontena/cli/external_registries/remove_command.rb
kontena-cli-1.4.2 lib/kontena/cli/external_registries/remove_command.rb
kontena-cli-1.4.2.rc1 lib/kontena/cli/external_registries/remove_command.rb
kontena-cli-1.4.2.pre1 lib/kontena/cli/external_registries/remove_command.rb
kontena-cli-1.4.1 lib/kontena/cli/external_registries/remove_command.rb
kontena-cli-1.4.1.rc1 lib/kontena/cli/external_registries/remove_command.rb
kontena-cli-1.4.1.pre1 lib/kontena/cli/external_registries/remove_command.rb
kontena-cli-1.3.5 lib/kontena/cli/external_registries/remove_command.rb
kontena-cli-1.3.5.rc1 lib/kontena/cli/external_registries/remove_command.rb
kontena-cli-1.4.0 lib/kontena/cli/external_registries/remove_command.rb
kontena-cli-1.4.0.rc2 lib/kontena/cli/external_registries/remove_command.rb
kontena-cli-1.4.0.rc1 lib/kontena/cli/external_registries/remove_command.rb
kontena-cli-1.4.0.pre14 lib/kontena/cli/external_registries/remove_command.rb
kontena-cli-1.4.0.pre13 lib/kontena/cli/external_registries/remove_command.rb
kontena-cli-1.4.0.pre12 lib/kontena/cli/external_registries/remove_command.rb
kontena-cli-1.4.0.pre11 lib/kontena/cli/external_registries/remove_command.rb
kontena-cli-1.4.0.pre10 lib/kontena/cli/external_registries/remove_command.rb
kontena-cli-1.4.0.pre9 lib/kontena/cli/external_registries/remove_command.rb
kontena-cli-1.4.0.pre8 lib/kontena/cli/external_registries/remove_command.rb