Sha256: abfd82fa49c03ebef3f6f4a3ee34830be8f649adb3dcb70365f23a340f3311da

Contents?: true

Size: 355 Bytes

Versions: 40

Compression:

Stored size: 355 Bytes

Contents

module Vagrant
  module Action
    module VM
      class Destroy
        def initialize(app, env)
          @app = app
        end

        def call(env)
          env[:ui].info I18n.t("vagrant.actions.vm.destroy.destroying")
          env[:vm].driver.delete
          env[:vm].uuid = nil

          @app.call(env)
        end
      end
    end
  end
end

Version data entries

40 entries across 40 versions & 6 rubygems

Version Path
bmhatfield-vagrant-1.0.10 lib/vagrant/action/vm/destroy.rb
bmhatfield-vagrant-1.0.9 lib/vagrant/action/vm/destroy.rb
bmhatfield-vagrant-1.0.8 lib/vagrant/action/vm/destroy.rb
bmhatfield-vagrant-1.0.7 lib/vagrant/action/vm/destroy.rb
vagrantup-1.0.7 lib/vagrant/action/vm/destroy.rb
vagrantup-1.0.6 lib/vagrant/action/vm/destroy.rb
vagrantup-1.0.5 lib/vagrant/action/vm/destroy.rb
vagrantup-1.0.4 lib/vagrant/action/vm/destroy.rb
vagrantup-1.0.3 lib/vagrant/action/vm/destroy.rb
vagrantup-1.0.2 lib/vagrant/action/vm/destroy.rb
vagrantup-1.0.1 lib/vagrant/action/vm/destroy.rb
vagrantup-1.0.0 lib/vagrant/action/vm/destroy.rb
vagrantup-0.9.99.2 lib/vagrant/action/vm/destroy.rb
vagrantup-0.9.99.1 lib/vagrant/action/vm/destroy.rb
vagrantup-0.9.7 lib/vagrant/action/vm/destroy.rb
vagrantup-0.9.6 lib/vagrant/action/vm/destroy.rb
vagrantup-0.9.5 lib/vagrant/action/vm/destroy.rb
vagrantup-0.9.4 lib/vagrant/action/vm/destroy.rb
vagrantup-0.9.3 lib/vagrant/action/vm/destroy.rb
vagrantup-0.9.2 lib/vagrant/action/vm/destroy.rb