library/Garp/Shell/Command/Abstract.php
public function renderThrottledCommand(Garp_Shell_RemoteSession $session = null) {
        $command = new Garp_Shell_Command_Decorator_Nice($this);

        $ioNiceCommand = new Garp_Shell_Command_IoNiceIsAvailable();
        $ioNiceCommandString = $ioNiceCommand->render();
        
        $ioNiceIsAvailable = $session ?
            $this->_executeStringRemotely($ioNiceCommandString, $session) :
            $this->_executeStringLocally($ioNiceCommandString)
        ;

        if ($ioNiceIsAvailable) {
            $command = new Garp_Shell_Command_Decorator_IoNice($command);
        }

        return $command->render();
    }
public function renderThrottledCommand(Garp_Shell_RemoteSession $session = null) {
        $command = new Garp_Shell_Command_Decorator_Nice($this);

        $ioNiceCommand = new Garp_Shell_Command_IoNiceIsAvailable();
        $ioNiceCommandString = $ioNiceCommand->render();
        
        $ioNiceIsAvailable = $session ?
            $this->_executeStringRemotely($ioNiceCommandString, $session) :
            $this->_executeStringLocally($ioNiceCommandString)
        ;

        if ($ioNiceIsAvailable) {
            $command = new Garp_Shell_Command_Decorator_IoNice($command);
        }

        return $command->render();
    }
public function renderThrottledCommand ( Garp_Shell_RemoteSession $ session = null ) { $ command = new Garp_Shell_Command_Decorator_Nice ( $ this ) ; $ ioNiceCommand = new Garp_Shell_Command_IoNiceIsAvailable ( ) ; $ ioNiceCommandString = $ ioNiceCommand -> render ( ) ; $ ioNiceIsAvailable = $ session ? $ this -> _executeStringRemotely ( $ ioNiceCommandString , $ session ) : $ this -> _executeStringLocally ( $ ioNiceCommandString ) ; if ( $ ioNiceIsAvailable ) { $ command = new Garp_Shell_Command_Decorator_IoNice ( $ command ) ; } return $ command -> render ( ) ; }
Returns the decorated version of this command, for throttling purposes.
@param Garp_Shell_RemoteSession $session Pass the session instance along if this is a remote server.
@return Garp_Shell_Command_Abstract
Returns the decorated version of this command for throttling purposes .