Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
34 | 16 | public function execute(): bool |
|
35 | { |
||
36 | 16 | $hostPath = rtrim($this->runtime->getEnvOption('host_path'), '/'); |
|
37 | |||
38 | 16 | $cmdMakeDir = sprintf('mkdir -p %s/releases/%s', $hostPath, $this->runtime->getReleaseId()); |
|
39 | |||
40 | /** @var Process $process */ |
||
41 | 16 | $process = $this->runtime->runRemoteCommand($cmdMakeDir, false); |
|
42 | 16 | return $process->isSuccessful(); |
|
43 | } |
||
45 |