vagrant-lxc-ng/lib/vagrant-lxc/action/destroy.rb
2013-04-05 22:10:48 -03:00

18 lines
372 B
Ruby

module Vagrant
module LXC
module Action
class Destroy
def initialize(app, env)
@app = app
end
def call(env)
env[:ui].info I18n.t("vagrant.actions.vm.destroy.destroying")
env[:machine].provider.driver.destroy
env[:machine].id = nil
@app.call env
end
end
end
end
end