| @@ 257-267 (lines=11) @@ | ||
| 254 | * |
|
| 255 | * @return \Symfony\Component\Process\Process |
|
| 256 | */ |
|
| 257 | public function installViaGit() |
|
| 258 | { |
|
| 259 | return new Process(sprintf( |
|
| 260 | 'cd %s && git clone %s %s && cd %s && git checkout %s', |
|
| 261 | base_path(), |
|
| 262 | $this->getRepoUrl(), |
|
| 263 | $this->getDestinationPath(), |
|
| 264 | $this->getDestinationPath(), |
|
| 265 | $this->getBranch() |
|
| 266 | )); |
|
| 267 | } |
|
| 268 | ||
| 269 | /** |
|
| 270 | * Install the module via git subtree. |
|
| @@ 274-285 (lines=12) @@ | ||
| 271 | * |
|
| 272 | * @return \Symfony\Component\Process\Process |
|
| 273 | */ |
|
| 274 | public function installViaSubtree() |
|
| 275 | { |
|
| 276 | return new Process(sprintf( |
|
| 277 | 'cd %s && git remote add %s %s && git subtree add --prefix=%s --squash %s %s', |
|
| 278 | base_path(), |
|
| 279 | $this->getModuleName(), |
|
| 280 | $this->getRepoUrl(), |
|
| 281 | $this->getDestinationPath(), |
|
| 282 | $this->getModuleName(), |
|
| 283 | $this->getBranch() |
|
| 284 | )); |
|
| 285 | } |
|
| 286 | ||
| 287 | /** |
|
| 288 | * Install the module via composer. |
|