Sha256: ec4a9c456894f010ab692be3bb3f420de39d592cdc4cf0ed065f6b9bac678734
Contents?: true
Size: 651 Bytes
Versions: 2
Compression:
Stored size: 651 Bytes
Contents
module Kontena::Plugin::Upcloud::Nodes class TerminateCommand < Clamp::Command include Kontena::Cli::Common include Kontena::Cli::GridOptions parameter "NAME", "Node name" option "--username", "USER", "Upcloud username", required: true option "--password", "PASS", "Upcloud password", required: true def execute require_api_url require_current_grid require 'kontena/machine/upcloud' grid = client(require_token).get("grids/#{current_grid}") destroyer = Kontena::Machine::Upcloud::NodeDestroyer.new(client(require_token), username, password) destroyer.run!(grid, name) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
kontena-plugin-upcloud-0.2.0.pre1 | lib/kontena/plugin/upcloud/nodes/terminate_command.rb |
kontena-plugin-upcloud-0.1.0 | lib/kontena/plugin/upcloud/nodes/terminate_command.rb |