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