Class: Kontena::Plugin::Vagrant::Master::TerminateCommand

Inherits:
Command
  • Object
show all
Includes:
Cli::Common
Defined in:
lib/kontena/plugin/vagrant/master/terminate_command.rb

Instance Method Summary collapse

Instance Method Details

#executeObject



7
8
9
10
11
# File 'lib/kontena/plugin/vagrant/master/terminate_command.rb', line 7

def execute
  confirm unless forced?
  require_relative '../../../machine/vagrant'
  Kontena::Machine::Vagrant::MasterDestroyer.new.run!
end