Sha256: c32bc4620f49a747eb18b1d1dc4542c22c2a00842210b69d1fa8c7f8262e4cff

Contents?: true

Size: 590 Bytes

Versions: 32

Compression:

Stored size: 590 Bytes

Contents

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

    def execute
       puts "DEPRECATION WARNING: Support for 'kontena registry delete' will be dropped. Use 'kontena registry remove' instead.".colorize(:red)

      require_api_url
      token = require_token

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

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

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
kontena-cli-0.15.5 lib/kontena/cli/registry/delete_command.rb
kontena-cli-0.15.5.rc2 lib/kontena/cli/registry/delete_command.rb
kontena-cli-0.15.5.rc1 lib/kontena/cli/registry/delete_command.rb
kontena-cli-0.15.4 lib/kontena/cli/registry/delete_command.rb
kontena-cli-0.15.4.rc2 lib/kontena/cli/registry/delete_command.rb
kontena-cli-0.15.4.rc1 lib/kontena/cli/registry/delete_command.rb
kontena-cli-0.15.4.pre1 lib/kontena/cli/registry/delete_command.rb
kontena-cli-0.15.3 lib/kontena/cli/registry/delete_command.rb
kontena-cli-0.15.2 lib/kontena/cli/registry/delete_command.rb
kontena-cli-0.15.1 lib/kontena/cli/registry/delete_command.rb
kontena-cli-0.15.0 lib/kontena/cli/registry/delete_command.rb
kontena-cli-0.15.0.rc3 lib/kontena/cli/registry/delete_command.rb
kontena-cli-0.15.0.rc2 lib/kontena/cli/registry/delete_command.rb
kontena-cli-0.15.0.rc1 lib/kontena/cli/registry/delete_command.rb
kontena-cli-0.14.7 lib/kontena/cli/registry/delete_command.rb
kontena-cli-0.14.6 lib/kontena/cli/registry/delete_command.rb
kontena-cli-0.14.5 lib/kontena/cli/registry/delete_command.rb
kontena-cli-0.14.4 lib/kontena/cli/registry/delete_command.rb
kontena-cli-0.14.3 lib/kontena/cli/registry/delete_command.rb
kontena-cli-0.14.2 lib/kontena/cli/registry/delete_command.rb