Sha256: 1855adcb807c842d94ea8c640c27dd3cc2a629cdf45c7474189da8394b9903af
Contents?: true
Size: 731 Bytes
Versions: 17
Compression:
Stored size: 731 Bytes
Contents
module Kontena::Cli::Nodes::Aws class TerminateCommand < Clamp::Command include Kontena::Cli::Common include Kontena::Cli::GridOptions parameter "NAME", "Node name" option "--access-key", "ACCESS_KEY", "AWS access key ID", required: true option "--secret-key", "SECRET_KEY", "AWS secret key", required: true option "--region", "REGION", "EC2 Region", default: 'eu-west-1' def execute require_api_url require_current_grid require 'kontena/machine/aws' grid = client(require_token).get("grids/#{current_grid}") destroyer = Kontena::Machine::Aws::NodeDestroyer.new(client(require_token), access_key, secret_key, region) destroyer.run!(grid, name) end end end
Version data entries
17 entries across 17 versions & 1 rubygems