private function pull()
    {
        if (is_writable(dirname($this->installDir))) {
            $cmd = new Command('mkdir');
            $cmd->addFlag('p')
                ->addParam($this->installDir);
            if ($this->ex($cmd)) {
                $cmd = new Command('cd');
                $cmd->addParam($this->installDir)
                    ->addSubCommand('&&')
                    ->addSubCommand('git')
                    ->addSubCommand('clone')
                    ->addParam($this->repoUrl)
                    ->addParam('.');

                return $this->ex($cmd);
            }
        }

        return false;
    }
private function pull()
    {
        if (is_writable(dirname($this->installDir))) {
            $cmd = new Command('mkdir');
            $cmd->addFlag('p')
                ->addParam($this->installDir);
            if ($this->ex($cmd)) {
                $cmd = new Command('cd');
                $cmd->addParam($this->installDir)
                    ->addSubCommand('&&')
                    ->addSubCommand('git')
                    ->addSubCommand('clone')
                    ->addParam($this->repoUrl)
                    ->addParam('.');

                return $this->ex($cmd);
            }
        }

        return false;
    }
private function pull ( ) { if ( is_writable ( dirname ( $ this -> installDir ) ) ) { $ cmd = new Command ( 'mkdir' ) ; $ cmd -> addFlag ( 'p' ) -> addParam ( $ this -> installDir ) ; if ( $ this -> ex ( $ cmd ) ) { $ cmd = new Command ( 'cd' ) ; $ cmd -> addParam ( $ this -> installDir ) -> addSubCommand ( '&&' ) -> addSubCommand ( 'git' ) -> addSubCommand ( 'clone' ) -> addParam ( $ this -> repoUrl ) -> addParam ( '.' ) ; return $ this -> ex ( $ cmd ) ; } } return false ; }
Create a new directory parallel to the webroot and clone the project into that directory.

@return bool True if the clone is successful. False otherwise.
Create a new directory parallel to the webroot and clone the project into that directory .