@@ 137-146 (lines=10) @@ | ||
134 | * |
|
135 | * @return \Robo\Result |
|
136 | */ |
|
137 | protected function executeCommand($command) |
|
138 | { |
|
139 | $result_data = $this->execute(new Process($command)); |
|
140 | return new Result( |
|
141 | $this, |
|
142 | $result_data->getExitCode(), |
|
143 | $result_data->getMessage(), |
|
144 | $result_data->getData() |
|
145 | ); |
|
146 | } |
|
147 | } |
|
148 |
@@ 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')) { |