@@ 65-70 (lines=6) @@ | ||
62 | */ |
|
63 | private function connect(array $hosts) |
|
64 | { |
|
65 | $callback = function (string $output) { |
|
66 | $output = preg_replace('/\n$/', '', $output); |
|
67 | if (strlen($output) !== 0) { |
|
68 | $this->output->writeln($output); |
|
69 | } |
|
70 | }; |
|
71 | ||
72 | // Connect to each host sequentially, to prevent getting locked. |
|
73 | foreach ($hosts as $host) { |
|
@@ 147-152 (lines=6) @@ | ||
144 | } |
|
145 | } |
|
146 | ||
147 | $callback = function (string $output) { |
|
148 | $output = preg_replace('/\n$/', '', $output); |
|
149 | if (strlen($output) !== 0) { |
|
150 | $this->output->writeln($output); |
|
151 | } |
|
152 | }; |
|
153 | ||
154 | $this->startProcesses($processes); |
|
155 |