Up command now uses Environment#batch

This commit is contained in:
Mitchell Hashimoto 2013-03-21 19:36:15 -07:00
parent d6a84b5ca4
commit df93a221e1
1 changed files with 2 additions and 5 deletions

View File

@ -31,20 +31,17 @@ module VagrantPlugins
@logger.debug("'Up' each target VM...")
# 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|
@env.ui.info(I18n.t(
"vagrant.commands.up.upping",
:name => machine.name,
:provider => machine.provider_name))
inner_batch.action(machine, :up, options)
batch.action(machine, :up, options)
end
end
# Run it!
batch.run
# Success, exit status 0
0
end