| @@ 48-55 (lines=8) @@ | ||
| 45 | /** | |
| 46 |      * {@inheritdoc} | |
| 47 | */ | |
| 48 | public function start() | |
| 49 |     { | |
| 50 |         try { | |
| 51 |             $this->processRunner->run('docker-machine start '.$this->name); | |
| 52 |         } catch (ProcessFailedException $e) { | |
| 53 | throw new MachineException($e->getMessage(), $e->getCode(), $e); | |
| 54 | } | |
| 55 | } | |
| 56 | ||
| 57 | /** | |
| 58 |      * {@inheritdoc} | |
| @@ 60-67 (lines=8) @@ | ||
| 57 | /** | |
| 58 |      * {@inheritdoc} | |
| 59 | */ | |
| 60 | public function stop() | |
| 61 |     { | |
| 62 |         try { | |
| 63 |             $this->processRunner->run('docker-machine stop '.$this->name); | |
| 64 |         } catch (ProcessFailedException $e) { | |
| 65 | throw new MachineException($e->getMessage(), $e->getCode(), $e); | |
| 66 | } | |
| 67 | } | |
| 68 | ||
| 69 | /** | |
| 70 |      * {@inheritdoc} | |
| @@ 104-111 (lines=8) @@ | ||
| 101 | /** | |
| 102 |      * {@inheritdoc} | |
| 103 | */ | |
| 104 | public function create() | |
| 105 |     { | |
| 106 |         try { | |
| 107 |             $this->processRunner->run('docker-machine create --driver virtualbox '.$this->name); | |
| 108 |         } catch (ProcessFailedException $e) { | |
| 109 | throw new MachineException($e->getMessage(), $e->getCode(), $e); | |
| 110 | } | |
| 111 | } | |
| 112 | ||
| 113 | /** | |
| 114 | * @return string | |