src/package/Support/Git.php
protected function shell($command)
    {
        $process = new Process($command, $this->getBasePath());

        $process->run();

        if (!$process->isSuccessful()) {
            return '';
        }

        return $this->cleanOutput($process->getOutput());
    }
protected function shell($command)
    {
        $process = new Process($command, $this->getBasePath());

        $process->run();

        if (!$process->isSuccessful()) {
            return '';
        }

        return $this->cleanOutput($process->getOutput());
    }
protected function shell ( $ command ) { $ process = new Process ( $ command , $ this -> getBasePath ( ) ) ; $ process -> run ( ) ; if ( ! $ process -> isSuccessful ( ) ) { return '' ; } return $ this -> cleanOutput ( $ process -> getOutput ( ) ) ; }
Execute an shell command.

@param $command

@throws Exception

@return string
Execute an shell command .