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

14 lines
341 B
Ruby

module Vagrant
module LXC
module Action
class Create < BaseAction
def call(env)
machine_id = env[:machine].provider.container.create(env[:machine].box.metadata)
env[:machine].id = machine_id
env[:just_created] = true
@app.call env
end
end
end
end
end