Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diffusion/ssh/DiffusionSSHWorkflow.php
Show First 20 Lines • Show All 111 Lines • ▼ Show 20 Lines | final protected function getProxyCommandForServiceRef( | ||||
$uri = new PhutilURI($ref->getURI()); | $uri = new PhutilURI($ref->getURI()); | ||||
$username = AlmanacKeys::getClusterSSHUser(); | $username = AlmanacKeys::getClusterSSHUser(); | ||||
if ($username === null) { | if ($username === null) { | ||||
throw new Exception( | throw new Exception( | ||||
pht( | pht( | ||||
'Unable to determine the username to connect with when trying '. | 'Unable to determine the username to connect with when trying '. | ||||
'to proxy an SSH request within the Phabricator cluster.')); | 'to proxy an SSH request within the cluster.')); | ||||
} | } | ||||
$port = $uri->getPort(); | $port = $uri->getPort(); | ||||
$host = $uri->getDomain(); | $host = $uri->getDomain(); | ||||
$key_path = AlmanacKeys::getKeyPath('device.key'); | $key_path = AlmanacKeys::getKeyPath('device.key'); | ||||
if (!Filesystem::pathExists($key_path)) { | if (!Filesystem::pathExists($key_path)) { | ||||
throw new Exception( | throw new Exception( | ||||
pht( | pht( | ||||
▲ Show 20 Lines • Show All 201 Lines • Show Last 20 Lines |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0