Mage/Task/AbstractTask.php
/**
     * Runs a Shell Command Localy or in the Remote Host based on the Task Stage.
     * If the stage is "deploy" then it will be executed in the remote host.
     * @param string $command
     * @param string $output
     * @return boolean
     */
Runs a Shell Command Localy or in the Remote Host based on the Task Stage.
If the stage is "deploy" then it will be executed in the remote host.
@param string $command
@param string $output
@return boolean
Runs a Shell Command Localy or in the Remote Host based on the Task Stage . If the stage is " deploy " then it will be executed in the remote host . @param string $command @param string $output @return boolean
protected final function runCommand($command, &$output = null)
    {
        if ($this->getStage() == 'deploy') {
        	return $this->runCommandRemote($command, $output);
        } else {
        	return $this->runCommandLocal($command, $output);
        }
    }
protected final function runCommand ( $ command , & $ output = null ) { if ( $ this -> getStage ( ) == 'deploy' ) { return $ this -> runCommandRemote ( $ command , $ output ) ; } else { return $ this -> runCommandLocal ( $ command , $ output ) ; } }
Runs a Shell Command Localy or in the Remote Host based on the Task Stage.
Runs a Shell Command Localy or in the Remote Host based on the Task Stage .