vagrant-lxc-ng/lib/vagrant-lxc/action/after_create.rb
2013-03-04 01:09:12 -03:00

15 lines
406 B
Ruby

module Vagrant
module LXC
module Action
class AfterCreate < BaseAction
def call(env)
# Continue, we need the VM to be booted.
@app.call env
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