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