src/Rocketeer/Strategies/Deploy/SyncStrategy.php
protected function getSyncHandle()
    {
        $credentials = $this->credentials->getServerCredentials();
        $handle = array_get($credentials, 'host');
        $explodedHandle = explode(':', $handle);

        // Extract port
        if (count($explodedHandle) === 2) {
            $this->options['port'] = $explodedHandle[1];
            $handle = $explodedHandle[0];
        }

        // Add username
        if ($user = array_get($credentials, 'username')) {
            $handle = $user.'@'.$handle;
        }

        return $handle;
    }
protected function getSyncHandle()
    {
        $credentials = $this->credentials->getServerCredentials();
        $handle = array_get($credentials, 'host');
        $explodedHandle = explode(':', $handle);

        // Extract port
        if (count($explodedHandle) === 2) {
            $this->options['port'] = $explodedHandle[1];
            $handle = $explodedHandle[0];
        }

        // Add username
        if ($user = array_get($credentials, 'username')) {
            $handle = $user.'@'.$handle;
        }

        return $handle;
    }
protected function getSyncHandle ( ) { $ credentials = $ this -> credentials -> getServerCredentials ( ) ; $ handle = array_get ( $ credentials , 'host' ) ; $ explodedHandle = explode ( ':' , $ handle ) ; // Extract port if ( count ( $ explodedHandle ) === 2 ) { $ this -> options [ 'port' ] = $ explodedHandle [ 1 ] ; $ handle = $ explodedHandle [ 0 ] ; } // Add username if ( $ user = array_get ( $ credentials , 'username' ) ) { $ handle = $ user . '@' . $ handle ; } return $ handle ; }
Get the handle to connect with.

@return string
Get the handle to connect with .