vagrant-lxc-ng/lib/vagrant-lxc/action/destroy.rb

19 lines
372 B
Ruby
Raw Normal View History

module Vagrant
module LXC
module Action
2013-04-01 21:05:19 -03:00
class Destroy
def initialize(app, env)
@app = app
end
def call(env)
2013-03-11 00:13:48 -03:00
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