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