public function runCommand($cmd, $timeout = 120)
    {
        switch ($this->getStage()) {
            case self::ON_DEPLOY:
            case self::ON_RELEASE:
            case self::POST_RELEASE:
                return $this->runRemoteCommand($cmd, true, $timeout);
            default:
                return $this->runLocalCommand($cmd, $timeout);
        }
    }
public function runCommand($cmd, $timeout = 120)
    {
        switch ($this->getStage()) {
            case self::ON_DEPLOY:
            case self::ON_RELEASE:
            case self::POST_RELEASE:
                return $this->runRemoteCommand($cmd, true, $timeout);
            default:
                return $this->runLocalCommand($cmd, $timeout);
        }
    }
public function runCommand ( $ cmd , $ timeout = 120 ) { switch ( $ this -> getStage ( ) ) { case self :: ON_DEPLOY : case self :: ON_RELEASE : case self :: POST_RELEASE : return $ this -> runRemoteCommand ( $ cmd , true , $ timeout ) ; default : return $ this -> runLocalCommand ( $ cmd , $ timeout ) ; } }
Executes a command, it will be run Locally or Remotely based on the working Stage

@param string $cmd Command to execute
@param int $timeout Seconds to wait
@return Process
Executes a command it will be run Locally or Remotely based on the working Stage