Sha256: 748317ce39a2764a2fe23dea85040c4e21c0ddbe2f2efaed5f4f6299aff76426

Contents?: true

Size: 578 Bytes

Versions: 34

Compression:

Stored size: 578 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 #{pastel.cyan(name)} external-registry from #{pastel.cyan(current_grid)} grid " do
        client(token).delete("external_registries/#{current_grid}/#{name}")
      end
    end
  end
end

Version data entries

34 entries across 34 versions & 2 rubygems

Version Path
krates-1.7.11 lib/kontena/cli/external_registries/remove_command.rb
krates-1.7.10 lib/kontena/cli/external_registries/remove_command.rb
krates-1.7.9 lib/kontena/cli/external_registries/remove_command.rb
krates-1.7.8 lib/kontena/cli/external_registries/remove_command.rb
krates-1.7.7 lib/kontena/cli/external_registries/remove_command.rb
krates-1.7.6 lib/kontena/cli/external_registries/remove_command.rb
krates-1.7.5 lib/kontena/cli/external_registries/remove_command.rb
krates-1.7.4 lib/kontena/cli/external_registries/remove_command.rb
krates-1.7.3 lib/kontena/cli/external_registries/remove_command.rb
krates-1.7.2 lib/kontena/cli/external_registries/remove_command.rb
krates-1.7.1 lib/kontena/cli/external_registries/remove_command.rb
krates-1.7.0 lib/kontena/cli/external_registries/remove_command.rb
krates-1.6.9 lib/kontena/cli/external_registries/remove_command.rb
krates-1.6.8 lib/kontena/cli/external_registries/remove_command.rb
krates-1.6.7 lib/kontena/cli/external_registries/remove_command.rb
krates-1.6.6 lib/kontena/cli/external_registries/remove_command.rb
krates-1.6.5 lib/kontena/cli/external_registries/remove_command.rb
krates-1.6.4 lib/kontena/cli/external_registries/remove_command.rb
krates-1.6.3 lib/kontena/cli/external_registries/remove_command.rb
krates-1.6.2 lib/kontena/cli/external_registries/remove_command.rb