lib/kontena/cli/registry/remove_command.rb in kontena-cli-0.13.4 vs lib/kontena/cli/registry/remove_command.rb in kontena-cli-0.14.0

- old
+ new

@@ -1,11 +1,14 @@ module Kontena::Cli::Registry class RemoveCommand < Clamp::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? 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")