| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 19 | public function exists(): bool |
||
| 20 | { |
||
| 21 | $process = Process::fromShellCommandline('docker-machine ls -q --filter="name=${MACHINE_NAME}"'); |
||
| 22 | $process->run(); |
||
| 23 | if ($process->isSuccessful()) { |
||
| 24 | return $this->machineName->toString() === trim($process->getOutput()); |
||
| 25 | } |
||
| 26 | |||
| 27 | return false; |
||
| 28 | } |
||
| 43 |