2013-03-03 05:24:05 +00:00
|
|
|
module Vagrant
|
|
|
|
module LXC
|
|
|
|
module Action
|
|
|
|
class AfterCreate < BaseAction
|
|
|
|
def call(env)
|
2013-03-04 04:09:12 +00:00
|
|
|
# Continue, we need the VM to be booted.
|
|
|
|
@app.call env
|
2013-03-03 05:24:05 +00:00
|
|
|
if env[:just_created] && (script = env[:machine].box.metadata['after-create-script'])
|
|
|
|
env[:machine].provider.container.run_after_create_script script
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|