Conditions | 2 |
Paths | 2 |
Total Lines | 13 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
35 | 13 | public function execute(): bool |
|
36 | { |
||
37 | 13 | if (!$this->runtime->getEnvOption('releases', false)) { |
|
38 | 2 | throw new ErrorException('This task is only available with releases enabled', 40); |
|
39 | } |
||
40 | |||
41 | 11 | $tarLocal = $this->runtime->getVar('tar_local'); |
|
42 | |||
43 | 11 | $cmdDeleteTar = sprintf('rm %s', $tarLocal); |
|
44 | |||
45 | /** @var Process $process */ |
||
46 | 11 | $process = $this->runtime->runLocalCommand($cmdDeleteTar); |
|
47 | 11 | return $process->isSuccessful(); |
|
48 | } |
||
50 |