@@ 67-72 (lines=6) @@ | ||
64 | */ |
|
65 | private function connect(array $hosts) |
|
66 | { |
|
67 | $callback = function (string $output) { |
|
68 | $output = preg_replace('/\n$/', '', $output); |
|
69 | if (strlen($output) !== 0) { |
|
70 | $this->output->writeln($output); |
|
71 | } |
|
72 | }; |
|
73 | ||
74 | // Connect to each host sequentially, to prevent getting locked. |
|
75 | foreach ($hosts as $host) { |
|
@@ 163-168 (lines=6) @@ | ||
160 | return 0; |
|
161 | } |
|
162 | ||
163 | $callback = function (string $output) { |
|
164 | $output = preg_replace('/\n$/', '', $output); |
|
165 | if (strlen($output) !== 0) { |
|
166 | $this->output->writeln($output); |
|
167 | } |
|
168 | }; |
|
169 | ||
170 | $this->startProcesses($processes); |
|
171 |