Sha256: e2fce6a7503aa51c6d8943dd8c97059a6f7a8d30a06acffd2f3eb48ffff23ef5

Contents?: true

Size: 329 Bytes

Versions: 22

Compression:

Stored size: 329 Bytes

Contents

module Kontena::Cli::ExternalRegistries
  class DeleteCommand < Clamp::Command
    include Kontena::Cli::Common

    parameter "NAME", "External registry name to delete"

    def execute
      require_api_url
      token = require_token
      client(token).delete("external_registries/#{current_grid}/#{name}")
    end
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
kontena-cli-0.11.7 lib/kontena/cli/external_registries/delete_command.rb
kontena-cli-0.11.6 lib/kontena/cli/external_registries/delete_command.rb
kontena-cli-0.11.5 lib/kontena/cli/external_registries/delete_command.rb
kontena-cli-0.11.4 lib/kontena/cli/external_registries/delete_command.rb
kontena-cli-0.11.3 lib/kontena/cli/external_registries/delete_command.rb
kontena-cli-0.11.2 lib/kontena/cli/external_registries/delete_command.rb
kontena-cli-0.11.1 lib/kontena/cli/external_registries/delete_command.rb
kontena-cli-0.11.0 lib/kontena/cli/external_registries/delete_command.rb
kontena-cli-0.10.3 lib/kontena/cli/external_registries/delete_command.rb
kontena-cli-0.10.2 lib/kontena/cli/external_registries/delete_command.rb
kontena-cli-0.10.1 lib/kontena/cli/external_registries/delete_command.rb
kontena-cli-0.10.0 lib/kontena/cli/external_registries/delete_command.rb
kontena-cli-0.9.3 lib/kontena/cli/external_registries/delete_command.rb
kontena-cli-0.9.2 lib/kontena/cli/external_registries/delete_command.rb
kontena-cli-0.9.1 lib/kontena/cli/external_registries/delete_command.rb
kontena-cli-0.9.0 lib/kontena/cli/external_registries/delete_command.rb
kontena-cli-0.8.4 lib/kontena/cli/external_registries/delete_command.rb
kontena-cli-0.8.3 lib/kontena/cli/external_registries/delete_command.rb
kontena-cli-0.8.2 lib/kontena/cli/external_registries/delete_command.rb
kontena-cli-0.8.1 lib/kontena/cli/external_registries/delete_command.rb