Sha256: 2526bfc17fc9ad03d625e969032edb5c1dffa54acc74ccd36422424789d2aab0
Contents?: true
Size: 742 Bytes
Versions: 18
Compression:
Stored size: 742 Bytes
Contents
module Kontena::Cli::Nodes::Azure class TerminateCommand < Clamp::Command include Kontena::Cli::Common include Kontena::Cli::GridOptions parameter "NAME", "Node name" option "--subscription-id", "SUBSCRIPTION ID", "Azure subscription id", required: true option "--subscription-cert", "CERTIFICATE", "Path to Azure management certificate", attribute_name: :certificate, required: true def execute require_api_url require_current_grid require 'kontena/machine/azure' grid = client(require_token).get("grids/#{current_grid}") destroyer = Kontena::Machine::Azure::NodeDestroyer.new(client(require_token), subscription_id, certificate) destroyer.run!(grid, name) end end end
Version data entries
18 entries across 18 versions & 1 rubygems