vaguerent/lib/vagrant/action/vm/customize.rb
2010-07-07 09:15:30 -07:00

22 lines
433 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"].vm)
env["vm"].vm.save
end
@app.call(env)
end
end
end
end
end