vaguerent/lib/vagrant/action/vm/customize.rb
2011-07-07 23:41:19 -07:00

23 lines
471 B
Ruby

module Vagrant
class Action
module VM
class Customize
def initialize(app, env)
@app = app
end
def call(env)
if !env.env.config.vm.proc_stack.empty?
env.ui.info I18n.t("vagrant.actions.vm.customize.running")
env.env.config.vm.run_procs!(env["vm"].vm)
env["vm"].vm.save
env["vm"].reload!
end
@app.call(env)
end
end
end
end
end