Sha256: 7c6799fc4e62b1ca55be951ef8e8407d9f8bdd726eb85487b57712de896c3b4b
Contents?: true
Size: 629 Bytes
Versions: 103
Compression:
Stored size: 629 Bytes
Contents
module Kontena::Cli::Registry class RemoveCommand < Kontena::Command include Kontena::Cli::Common option "--force", :flag, "Force remove", default: false, attribute_name: :forced def execute require_api_url token = require_token confirm unless forced? name = 'registry' registry = client(token).get("stacks/#{current_grid}/#{name}") rescue nil exit_with_error("Stack #{name.colorize(:cyan)} does not exist") if registry.nil? spinner "Removing #{name.colorize(:cyan)} stack " do client(token).delete("stacks/#{current_grid}/#{name}") end end end end
Version data entries
103 entries across 103 versions & 1 rubygems