| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 38 | 3 | public function execute(Config $config, IO $io, Repository $repository, Config\Action $action) |
|
| 39 | { |
||
| 40 | 3 | $process = new Process($action->getAction()); |
|
| 41 | 3 | $process->run(); |
|
| 42 | |||
| 43 | 3 | if (!$process->isSuccessful()) { |
|
| 44 | 1 | throw new Exception\ActionExecution($process->getOutput() . PHP_EOL . $process->getErrorOutput()); |
|
| 45 | } |
||
| 46 | |||
| 47 | 2 | $io->write($process->getOutput()); |
|
| 48 | 2 | } |
|
| 49 | } |
||
| 50 |