Sha256: 206c359e69c5b626271629284449da7b6ad0c3266c6454a23439b139643b6d9b

Contents?: true

Size: 331 Bytes

Versions: 5

Compression:

Stored size: 331 Bytes

Contents

module Kontena::Cli::ExternalRegistries
  class RemoveCommand < Kontena::Command
    include Kontena::Cli::Common

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

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
kontena-cli-0.16.0.pre5 lib/kontena/cli/external_registries/remove_command.rb
kontena-cli-0.16.0.pre4 lib/kontena/cli/external_registries/remove_command.rb
kontena-cli-0.16.0.pre3 lib/kontena/cli/external_registries/remove_command.rb
kontena-cli-0.16.0.pre2 lib/kontena/cli/external_registries/remove_command.rb
kontena-cli-0.16.0.pre1 lib/kontena/cli/external_registries/remove_command.rb