Changeset View
Changeset View
Standalone View
Standalone View
src/infrastructure/ssh/PhabricatorSSHWorkflow.php
| <?php | <?php | ||||
| abstract class PhabricatorSSHWorkflow extends PhabricatorManagementWorkflow { | abstract class PhabricatorSSHWorkflow extends PhabricatorManagementWorkflow { | ||||
| private $user; | private $user; | ||||
| private $iochannel; | private $iochannel; | ||||
| private $errorChannel; | private $errorChannel; | ||||
| private $isClusterRequest; | |||||
| private $originalArguments; | |||||
| public function isExecutable() { | public function isExecutable() { | ||||
| return false; | return false; | ||||
| } | } | ||||
| public function setErrorChannel(PhutilChannel $error_channel) { | public function setErrorChannel(PhutilChannel $error_channel) { | ||||
| $this->errorChannel = $error_channel; | $this->errorChannel = $error_channel; | ||||
| return $this; | return $this; | ||||
| ▲ Show 20 Lines • Show All 42 Lines • ▼ Show 20 Lines | public function writeErrorIO($data) { | ||||
| return $this; | return $this; | ||||
| } | } | ||||
| protected function newPassthruCommand() { | protected function newPassthruCommand() { | ||||
| return id(new PhabricatorSSHPassthruCommand()) | return id(new PhabricatorSSHPassthruCommand()) | ||||
| ->setErrorChannel($this->getErrorChannel()); | ->setErrorChannel($this->getErrorChannel()); | ||||
| } | } | ||||
| public function setIsClusterRequest($is_cluster_request) { | |||||
| $this->isClusterRequest = $is_cluster_request; | |||||
| return $this; | |||||
| } | |||||
| public function getIsClusterRequest() { | |||||
| return $this->isClusterRequest; | |||||
| } | |||||
| public function setOriginalArguments(array $original_arguments) { | |||||
| $this->originalArguments = $original_arguments; | |||||
| return $this; | |||||
| } | |||||
| public function getOriginalArguments() { | |||||
| return $this->originalArguments; | |||||
| } | |||||
| } | } | ||||