Sha256: 327aafd4840f867007b5886e3e7d934fe78d2ce3f6a7e1796929747749263363
Contents?: true
Size: 407 Bytes
Versions: 10
Compression:
Stored size: 407 Bytes
Contents
module Kontena::Cli::Registry class RemoveCommand < 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
10 entries across 10 versions & 1 rubygems