Sha256: a9ef0f97084541995d9afcc0a1ca6ccc4038dc459f4b0db3d0ae0146e7d44b75

Contents?: true

Size: 375 Bytes

Versions: 15

Compression:

Stored size: 375 Bytes

Contents

module Kontena::Plugin::Vagrant::Master
  class TerminateCommand < Kontena::Command
    include Kontena::Cli::Common

    option '--force', :flag, 'Force remove', default: false, attribute_name: :forced

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

Version data entries

15 entries across 15 versions & 2 rubygems

Version Path
krates-plugin-vagrant-0.3.6 lib/kontena/plugin/vagrant/master/terminate_command.rb
krates-plugin-vagrant-0.3.5 lib/kontena/plugin/vagrant/master/terminate_command.rb
krates-plugin-vagrant-0.3.4 lib/kontena/plugin/vagrant/master/terminate_command.rb
krates-plugin-vagrant-0.3.3 lib/kontena/plugin/vagrant/master/terminate_command.rb
krates-plugin-vagrant-0.3.2 lib/kontena/plugin/vagrant/master/terminate_command.rb
krates-plugin-vagrant-0.3.1 lib/kontena/plugin/vagrant/master/terminate_command.rb
kontena-plugin-vagrant-0.3.1 lib/kontena/plugin/vagrant/master/terminate_command.rb
kontena-plugin-vagrant-0.3.0 lib/kontena/plugin/vagrant/master/terminate_command.rb
kontena-plugin-vagrant-0.2.7 lib/kontena/plugin/vagrant/master/terminate_command.rb
kontena-plugin-vagrant-0.2.6 lib/kontena/plugin/vagrant/master/terminate_command.rb
kontena-plugin-vagrant-0.2.5 lib/kontena/plugin/vagrant/master/terminate_command.rb
kontena-plugin-vagrant-0.2.2 lib/kontena/plugin/vagrant/master/terminate_command.rb
kontena-plugin-vagrant-0.2.1 lib/kontena/plugin/vagrant/master/terminate_command.rb
kontena-plugin-vagrant-0.2.0 lib/kontena/plugin/vagrant/master/terminate_command.rb
kontena-plugin-vagrant-0.2.0.pre2 lib/kontena/plugin/vagrant/master/terminate_command.rb