Sha256: 6eca505ccf56bd6bf9e0f38ffde0081795287f2158a117960ba4632deb22f474
Contents?: true
Size: 542 Bytes
Versions: 32
Compression:
Stored size: 542 Bytes
Contents
module Kontena::Cli::Vpn class DeleteCommand < Clamp::Command include Kontena::Cli::Common include Kontena::Cli::GridOptions def execute puts "DEPRECATION WARNING: Support for 'kontena vpn delete' will be dropped. Use 'kontena vpn remove' instead.".colorize(:red) require_api_url token = require_token vpn = client(token).get("services/#{current_grid}/vpn") rescue nil abort("VPN service does not exist") if vpn.nil? client(token).delete("services/#{current_grid}/vpn") end end end
Version data entries
32 entries across 32 versions & 1 rubygems