vaguerent/lib/vagrant/action/vm/customize.rb
Mitchell Hashimoto 12117d6349 Customize action
2010-07-04 09:18:34 +02:00

22 lines
427 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.logger.info "Running any VM customizations..."
env.env.config.vm.run_procs!(env["vm"])
env["vm"].save
end
@app.call(env)
end
end
end
end
end