Sha256: 2c311b16871051cf23b287418e257c57a13a9c4b569f928927837fe01a6adc6e
Contents?: true
Size: 407 Bytes
Versions: 22
Compression:
Stored size: 407 Bytes
Contents
module Kontena::Cli::Registry class DeleteCommand < Clamp::Command include Kontena::Cli::Common def execute 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
22 entries across 22 versions & 1 rubygems