_config = $config; } public function init() { } protected final function _runLocalCommand($command, &$output = null) { return Mage_Console::executeCommand($command, $output); } protected final function _runRemoteCommand($command, &$output = null) { $localCommand = 'ssh ' . $this->_config['deploy']['deployment']['user'] . '@' . $this->_config['deploy']['host'] . ' ' . '"cd ' . $this->_config['deploy']['deployment']['to'] . ' && ' . $command . '"'; return $this->_runLocalCommand($localCommand, $output); } }