| @@ 141-150 (lines=10) @@ | ||
| 138 | * |
|
| 139 | * @return \Robo\Result |
|
| 140 | */ |
|
| 141 | protected function executeCommand($command) |
|
| 142 | { |
|
| 143 | $result_data = $this->execute(new Process($command)); |
|
| 144 | return new Result( |
|
| 145 | $this, |
|
| 146 | $result_data->getExitCode(), |
|
| 147 | $result_data->getMessage(), |
|
| 148 | $result_data->getData() |
|
| 149 | ); |
|
| 150 | } |
|
| 151 | } |
|
| 152 | ||
| @@ 108-117 (lines=10) @@ | ||
| 105 | /** |
|
| 106 | * {@inheritdoc} |
|
| 107 | */ |
|
| 108 | public function run() |
|
| 109 | { |
|
| 110 | $result_data = $this->execute(new Process($this->getCommand())); |
|
| 111 | return new Result( |
|
| 112 | $this, |
|
| 113 | $result_data->getExitCode(), |
|
| 114 | $result_data->getMessage(), |
|
| 115 | $result_data->getData() |
|
| 116 | ); |
|
| 117 | } |
|
| 118 | } |
|
| 119 | ||
| 120 | if (function_exists('pcntl_signal')) { |
|