Sha256: 91cb6dbfff3e54dbf7a427fe41ba61702a9e8468865af05c53b058cb0e7ab9e3
Contents?: true
Size: 636 Bytes
Versions: 22
Compression:
Stored size: 636 Bytes
Contents
module Kontena::Cli::Certificate::DomainAuthorization class RemoveAuthorizationCommand < Kontena::Command include Kontena::Cli::Common include Kontena::Cli::GridOptions parameter "DOMAIN", "Domain authorization to remove" option "--force", :flag, "Force remove", default: false, attribute_name: :forced def execute confirm_command(self.domain) unless forced? require_api_url token = require_token spinner "Deleting domain authorization for #{self.domain.colorize(:cyan)}" do client.delete("domain_authorizations/#{current_grid}/#{self.domain}") end end end end
Version data entries
22 entries across 22 versions & 1 rubygems