mirror of
				https://github.com/hauke68/Magallanes.git
				synced 2025-11-04 00:50:18 +01:00 
			
		
		
		
	Add new Run Command method which gusses on the deployment stage to run it local or remote.
This commit is contained in:
		
							parent
							
								
									a29eb1e207
								
							
						
					
					
						commit
						f6df60a406
					
				@ -48,6 +48,15 @@ abstract class Mage_Task_TaskAbstract
 | 
			
		||||
        return $this->getConfig()->getParameter($name, $default, $this->_parameters);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    protected final function runCommand($command, &$output = null)
 | 
			
		||||
    {
 | 
			
		||||
        if ($this->getStage() == 'deploy') {
 | 
			
		||||
        	return $this->_runRemoteCommand($command, $output);
 | 
			
		||||
        } else {
 | 
			
		||||
        	return $this->_runLocalCommand($command, $output);
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    protected final function _runLocalCommand($command, &$output = null)
 | 
			
		||||
    {
 | 
			
		||||
        return Mage_Console::executeCommand($command, $output);
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user