vaguerent/lib/vagrant/action/vm/customize.rb

22 lines
441 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
end
@app.call(env)
end
end
end
end
end