Sha256: 0d2874eac9e2e596e125af8f48f591212deaac3583e74cc447965cbe1f4f1fce

Contents?: true

Size: 568 Bytes

Versions: 16

Compression:

Stored size: 568 Bytes

Contents

module Kontena::Cli::Registry
  class DeleteCommand < Kontena::Command
    include Kontena::Cli::Common
    include Kontena::Cli::GridOptions

    def execute
      warning "Support for 'kontena registry delete' will be dropped. Use 'kontena registry remove' instead."

      require_api_url
      token = require_token

      registry = client(token).get("services/#{current_grid}/registry") rescue nil
      exit_with_error("Docker Registry service does not exist") if registry.nil?

      client(token).delete("services/#{current_grid}/registry")
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
kontena-cli-0.16.3 lib/kontena/cli/registry/delete_command.rb
kontena-cli-0.16.3.rc1 lib/kontena/cli/registry/delete_command.rb
kontena-cli-0.16.2 lib/kontena/cli/registry/delete_command.rb
kontena-cli-0.16.2.rc1 lib/kontena/cli/registry/delete_command.rb
kontena-cli-0.16.1 lib/kontena/cli/registry/delete_command.rb
kontena-cli-0.16.1.rc3 lib/kontena/cli/registry/delete_command.rb
kontena-cli-0.16.1.rc2 lib/kontena/cli/registry/delete_command.rb
kontena-cli-0.16.1.rc1 lib/kontena/cli/registry/delete_command.rb
kontena-cli-0.16.0 lib/kontena/cli/registry/delete_command.rb
kontena-cli-0.16.0.rc3 lib/kontena/cli/registry/delete_command.rb
kontena-cli-0.16.0.rc2 lib/kontena/cli/registry/delete_command.rb
kontena-cli-0.16.0.rc1 lib/kontena/cli/registry/delete_command.rb
kontena-cli-0.16.0.pre9 lib/kontena/cli/registry/delete_command.rb
kontena-cli-0.16.0.pre8 lib/kontena/cli/registry/delete_command.rb
kontena-cli-0.16.0.pre7 lib/kontena/cli/registry/delete_command.rb
kontena-cli-0.16.0.pre6 lib/kontena/cli/registry/delete_command.rb