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.0.4.rc1 lib/kontena/cli/external_registries/remove_command.rb
kontena-cli-1.0.3 lib/kontena/cli/external_registries/remove_command.rb
kontena-cli-1.0.3.rc1 lib/kontena/cli/external_registries/remove_command.rb
kontena-cli-1.0.2 lib/kontena/cli/external_registries/remove_command.rb
kontena-cli-1.0.2.rc2 lib/kontena/cli/external_registries/remove_command.rb
kontena-cli-1.0.2.rc1 lib/kontena/cli/external_registries/remove_command.rb
kontena-cli-1.0.2.pre1 lib/kontena/cli/external_registries/remove_command.rb
kontena-cli-1.0.1 lib/kontena/cli/external_registries/remove_command.rb
kontena-cli-1.0.1.rc3 lib/kontena/cli/external_registries/remove_command.rb
kontena-cli-1.0.1.rc2 lib/kontena/cli/external_registries/remove_command.rb
kontena-cli-1.0.1.rc1 lib/kontena/cli/external_registries/remove_command.rb
kontena-cli-1.0.0 lib/kontena/cli/external_registries/remove_command.rb
kontena-cli-1.0.0.rc2 lib/kontena/cli/external_registries/remove_command.rb
kontena-cli-1.0.0.rc1 lib/kontena/cli/external_registries/remove_command.rb
kontena-cli-1.0.0.pre4 lib/kontena/cli/external_registries/remove_command.rb
kontena-cli-1.0.0.pre3 lib/kontena/cli/external_registries/remove_command.rb
kontena-cli-1.0.0.pre2 lib/kontena/cli/external_registries/remove_command.rb
kontena-cli-1.0.0.pre1 lib/kontena/cli/external_registries/remove_command.rb
kontena-cli-0.17.0.pre5 lib/kontena/cli/external_registries/remove_command.rb
kontena-cli-0.17.0.pre4 lib/kontena/cli/external_registries/remove_command.rb