src/Model/Environment.php
private function constructLegacySshUrl()
    {
        if (!$this->hasLink('ssh')) {
            $id = $this->data['id'];
            if (!$this->isActive()) {
                throw new EnvironmentStateException("No SSH URL found for environment '$id'. It is not currently active.", $this);
            }
            throw new OperationUnavailableException("No SSH URL found for environment '$id'. You may not have permission to SSH.");
        }

        return $this->convertSshUrl($this->getLink('ssh'));
    }
private function constructLegacySshUrl()
    {
        if (!$this->hasLink('ssh')) {
            $id = $this->data['id'];
            if (!$this->isActive()) {
                throw new EnvironmentStateException("No SSH URL found for environment '$id'. It is not currently active.", $this);
            }
            throw new OperationUnavailableException("No SSH URL found for environment '$id'. You may not have permission to SSH.");
        }

        return $this->convertSshUrl($this->getLink('ssh'));
    }
private function constructLegacySshUrl ( ) { if ( ! $ this -> hasLink ( 'ssh' ) ) { $ id = $ this -> data [ 'id' ] ; if ( ! $ this -> isActive ( ) ) { throw new EnvironmentStateException ( "No SSH URL found for environment '$id'. It is not currently active." , $ this ) ; } throw new OperationUnavailableException ( "No SSH URL found for environment '$id'. You may not have permission to SSH." ) ; } return $ this -> convertSshUrl ( $ this -> getLink ( 'ssh' ) ) ; }
Get the SSH URL via the legacy 'ssh' link.

@return string
Get the SSH URL via the legacy ssh link .