vagrant-lxc-ng/lib/vagrant-lxc/action/after_create.rb

16 lines
406 B
Ruby
Raw Normal View History

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
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