src/Rocketeer/Strategies/Deploy/SyncStrategy.php
protected function getTransport()
    {
        $ssh = 'ssh';

        // Get port
        if ($port = $this->getOption('port', true)) {
            $ssh .= ' -p '.$port;
        }

        // Get key
        $key = $this->credentials->getServerCredentials();
        $key = Arr::get($key, 'key');
        if ($key) {
            $ssh .= ' -i "'.$key.'"';
        }

        return $ssh;
    }
protected function getTransport()
    {
        $ssh = 'ssh';

        // Get port
        if ($port = $this->getOption('port', true)) {
            $ssh .= ' -p '.$port;
        }

        // Get key
        $key = $this->credentials->getServerCredentials();
        $key = Arr::get($key, 'key');
        if ($key) {
            $ssh .= ' -i "'.$key.'"';
        }

        return $ssh;
    }
protected function getTransport ( ) { $ ssh = 'ssh' ; // Get port if ( $ port = $ this -> getOption ( 'port' , true ) ) { $ ssh .= ' -p ' . $ port ; } // Get key $ key = $ this -> credentials -> getServerCredentials ( ) ; $ key = Arr :: get ( $ key , 'key' ) ; if ( $ key ) { $ ssh .= ' -i "' . $ key . '"' ; } return $ ssh ; }
Get the transport to use.

@return string
Get the transport to use .