Sha256: fe2ba290d8f8597930b2b308fc67deba5915f1ac246175f77e5c74bdb1f7f074
Contents?: true
Size: 370 Bytes
Versions: 10
Compression:
Stored size: 370 Bytes
Contents
module Kontena::Cli::Vpn class RemoveCommand < Clamp::Command include Kontena::Cli::Common def execute 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
10 entries across 10 versions & 1 rubygems