vagrant-lxc-ng/lib/vagrant-lxc/action/after_create.rb
2013-03-03 02:24:05 -03:00

14 lines
355 B
Ruby

module Vagrant
module LXC
module Action
class AfterCreate < BaseAction
def call(env)
if env[:just_created] && (script = env[:machine].box.metadata['after-create-script'])
env[:machine].provider.container.run_after_create_script script
end
@app.call env
end
end
end
end
end