Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diffusion/ssh/DiffusionSSHWorkflow.php
| Show First 20 Lines • Show All 49 Lines • ▼ Show 20 Lines | protected function getBaseRequestPath() { | ||||
| return $this->baseRequestPath; | return $this->baseRequestPath; | ||||
| } | } | ||||
| protected function writeError($message) { | protected function writeError($message) { | ||||
| $this->getErrorChannel()->write($message); | $this->getErrorChannel()->write($message); | ||||
| return $this; | return $this; | ||||
| } | } | ||||
| protected function getCurrentDeviceName() { | |||||
| $device = AlmanacKeys::getLiveDevice(); | |||||
| if ($device) { | |||||
| return $device->getName(); | |||||
| } | |||||
| return php_uname('n'); | |||||
| } | |||||
| protected function getTargetDeviceName() { | |||||
| // TODO: This should use the correct device identity. | |||||
Lint: TODO Comment: This comment has a TODO. | |||||
| $uri = new PhutilURI($this->proxyURI); | |||||
| return $uri->getDomain(); | |||||
| } | |||||
| protected function shouldProxy() { | protected function shouldProxy() { | ||||
| return (bool)$this->proxyURI; | return (bool)$this->proxyURI; | ||||
| } | } | ||||
| protected function getProxyCommand() { | protected function getProxyCommand() { | ||||
| $uri = new PhutilURI($this->proxyURI); | $uri = new PhutilURI($this->proxyURI); | ||||
| $username = AlmanacKeys::getClusterSSHUser(); | $username = AlmanacKeys::getClusterSSHUser(); | ||||
| ▲ Show 20 Lines • Show All 196 Lines • Show Last 20 Lines | |||||
This comment has a TODO.