| Conditions | 3 |
| Paths | 4 |
| Total Lines | 13 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 1 | Features | 1 |
| 1 | <?php |
||
| 35 | public function run() |
||
| 36 | { |
||
| 37 | try { |
||
| 38 | $this->machine->start(); |
||
| 39 | } catch (MachineException $e) { |
||
| 40 | // Ignore the problem as if the machine is not running, we |
||
| 41 | // will run the installer. |
||
| 42 | } |
||
| 43 | |||
| 44 | if (!$this->machine->isRunning()) { |
||
| 45 | $this->dockerInstaller->run(); |
||
| 46 | } |
||
| 47 | } |
||
| 48 | } |
||
| 49 |