Up command now uses Environment#batch
This commit is contained in:
parent
d6a84b5ca4
commit
df93a221e1
|
@ -31,20 +31,17 @@ module VagrantPlugins
|
||||||
@logger.debug("'Up' each target VM...")
|
@logger.debug("'Up' each target VM...")
|
||||||
|
|
||||||
# Build up the batch job of what we'll do
|
# Build up the batch job of what we'll do
|
||||||
batch = Vagrant::BatchAction.new.tap do |inner_batch|
|
@env.batch do |batch|
|
||||||
with_target_vms(argv, :provider => options[:provider]) do |machine|
|
with_target_vms(argv, :provider => options[:provider]) do |machine|
|
||||||
@env.ui.info(I18n.t(
|
@env.ui.info(I18n.t(
|
||||||
"vagrant.commands.up.upping",
|
"vagrant.commands.up.upping",
|
||||||
:name => machine.name,
|
:name => machine.name,
|
||||||
:provider => machine.provider_name))
|
:provider => machine.provider_name))
|
||||||
|
|
||||||
inner_batch.action(machine, :up, options)
|
batch.action(machine, :up, options)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# Run it!
|
|
||||||
batch.run
|
|
||||||
|
|
||||||
# Success, exit status 0
|
# Success, exit status 0
|
||||||
0
|
0
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue