@@ 91-99 (lines=9) @@ | ||
88 | /** |
|
89 | * {@inheritdoc} |
|
90 | */ |
|
91 | public function isCreated() |
|
92 | { |
|
93 | $process = $this->processRunner->run('docker-machine status '.$this->name, false); |
|
94 | if(!$process->isSuccessful() || strpos($process->getOutput(), 'Error') === 0) { |
|
95 | return false; |
|
96 | } |
|
97 | ||
98 | return true; |
|
99 | } |
|
100 | ||
101 | /** |
|
102 | * {@inheritdoc} |
|
@@ 35-43 (lines=9) @@ | ||
32 | /** |
|
33 | * {@inheritdoc} |
|
34 | */ |
|
35 | public function isRunning() |
|
36 | { |
|
37 | $process = $this->processRunner->run('docker-machine status '.$this->name, false); |
|
38 | if (!$process->isSuccessful()) { |
|
39 | return false; |
|
40 | } |
|
41 | ||
42 | return strpos($process->getOutput(), 'Running') === 0; |
|
43 | } |
|
44 | ||
45 | /** |
|
46 | * {@inheritdoc} |