Nwidart\Modules\Process\Installer::installViaSubtree PHP Method

installViaSubtree() public method

Install the module via git subtree.
public installViaSubtree ( ) : Process
return Symfony\Component\Process\Process
    public function installViaSubtree()
    {
        return new Process(sprintf('cd %s && git remote add %s %s && git subtree add --prefix=%s --squash %s %s', base_path(), $this->getModuleName(), $this->getRepoUrl(), $this->getDestinationPath(), $this->getModuleName(), $this->getBranch()));
    }