From eab553ad55ac2b756b92c32aa976e85d098b1189 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Tue, 15 Apr 2014 17:37:55 -0700 Subject: [PATCH] providers/docker: better comments --- plugins/providers/docker/command/logs.rb | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/plugins/providers/docker/command/logs.rb b/plugins/providers/docker/command/logs.rb index 0a60184ad..a648cd2ec 100644 --- a/plugins/providers/docker/command/logs.rb +++ b/plugins/providers/docker/command/logs.rb @@ -33,7 +33,9 @@ module VagrantPlugins # TODO: exit with exit status != 0 if all machines are unknown # or not created. - # Go through each machine and execute the client on it + # Start a batch action that sends all the logs to stdout. This + # will parallelize, if enabled, across all containers that are + # chosen. @env.batch do |batch| with_target_vms(argv) do |machine| if machine.provider_name != :docker @@ -57,6 +59,10 @@ module VagrantPlugins end end + protected + + # Executes the "docker logs" command on a single machine and proxies + # the output to our UI. def execute_single(machine, options) command = ["docker", "logs"] command << "--follow" if options[:follow]