class Kontena::Plugin::Vagrant::Nodes::TerminateCommand
Public Instance Methods
destroyer(client)
click to toggle source
@param [Kontena::Client] client
# File lib/kontena/plugin/vagrant/nodes/terminate_command.rb, line 22 def destroyer(client) Kontena::Machine::Vagrant::NodeDestroyer.new(client) end
execute()
click to toggle source
# File lib/kontena/plugin/vagrant/nodes/terminate_command.rb, line 9 def execute require_api_url require_current_grid confirm_command("#{current_grid}/#{name}") unless forced? require_relative '../../../machine/vagrant' destroyer = destroyer(client(require_token)) destroyer.run!(current_grid, name) end