lib/vagrant/action/vm/destroy.rb in vagrant-0.8.10 vs lib/vagrant/action/vm/destroy.rb in vagrant-0.9.0

- old
+ new

@@ -1,16 +1,16 @@ module Vagrant - class Action + 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"].vm.destroy - env["vm"].vm = nil + env[:ui].info I18n.t("vagrant.actions.vm.destroy.destroying") + env[:vm].driver.delete + env[:vm].uuid = nil @app.call(env) end end end