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

15 lines
321 B
Ruby
Raw Normal View History

module Vagrant
module LXC
module Action
class Destroy < BaseAction
def call(env)
2013-03-11 03:13:48 +00:00
env[:ui].info I18n.t("vagrant.actions.vm.destroy.destroying")
env[:machine].provider.container.destroy
env[:machine].id = nil
@app.call env
end
end
end
end
end