protected static function bootstrapSSHDataService(array $instanceConfig)
    {
        // TODO: This is a little bit strange that i have to put KeyFile and Port into the SSH adapter
        //       I think this has to be refactored.
        //       All SSH credentials have to be in one place
        $sshConfig = [
            'KeyFile' => $instanceConfig['KeyFile'],
            'Port' => $instanceConfig['Instance']['port']
        ];
        $ssh = new SSH('ssh', $sshConfig);
        $dataService = new SSHDataService($ssh, $instanceConfig['Instance']);

        return $dataService;
    }
protected static function bootstrapSSHDataService(array $instanceConfig)
    {
        // TODO: This is a little bit strange that i have to put KeyFile and Port into the SSH adapter
        //       I think this has to be refactored.
        //       All SSH credentials have to be in one place
        $sshConfig = [
            'KeyFile' => $instanceConfig['KeyFile'],
            'Port' => $instanceConfig['Instance']['port']
        ];
        $ssh = new SSH('ssh', $sshConfig);
        $dataService = new SSHDataService($ssh, $instanceConfig['Instance']);

        return $dataService;
    }
protected static function bootstrapSSHDataService ( array $ instanceConfig ) { // TODO: This is a little bit strange that i have to put KeyFile and Port into the SSH adapter //       I think this has to be refactored. //       All SSH credentials have to be in one place $ sshConfig = [ 'KeyFile' => $ instanceConfig [ 'KeyFile' ] , 'Port' => $ instanceConfig [ 'Instance' ] [ 'port' ] ] ; $ ssh = new SSH ( 'ssh' , $ sshConfig ) ; $ dataService = new SSHDataService ( $ ssh , $ instanceConfig [ 'Instance' ] ) ; return $ dataService ; }
Bootstraps a data service for the Gerrit SSH API.

For $instanceConfig documentation see self::getDataService.

@param array $instanceConfig
@return SSHDataService
Bootstraps a data service for the Gerrit SSH API .