Sha256: c59ce8e439aa55fbd5f78af8fc3531fdc951638be8759a5824b0ea85a5001e48

Contents?: true

Size: 592 Bytes

Versions: 5

Compression:

Stored size: 592 Bytes

Contents

module Kontena::Cli::Registry
  class DeleteCommand < Kontena::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

5 entries across 5 versions & 1 rubygems

Version Path
kontena-cli-0.16.0.pre5 lib/kontena/cli/registry/delete_command.rb
kontena-cli-0.16.0.pre4 lib/kontena/cli/registry/delete_command.rb
kontena-cli-0.16.0.pre3 lib/kontena/cli/registry/delete_command.rb
kontena-cli-0.16.0.pre2 lib/kontena/cli/registry/delete_command.rb
kontena-cli-0.16.0.pre1 lib/kontena/cli/registry/delete_command.rb