Changeset View
Changeset View
Standalone View
Standalone View
src/applications/repository/storage/PhabricatorRepository.php
Show First 20 Lines • Show All 493 Lines • ▼ Show 20 Lines | /* -( Remote Command Execution )------------------------------------------- */ | ||||
public function getRemoteCommandFuture($pattern /* , $arg, ... */) { | public function getRemoteCommandFuture($pattern /* , $arg, ... */) { | ||||
$args = func_get_args(); | $args = func_get_args(); | ||||
return $this->newRemoteCommandFuture($args); | return $this->newRemoteCommandFuture($args); | ||||
} | } | ||||
public function passthruRemoteCommand($pattern /* , $arg, ... */) { | public function passthruRemoteCommand($pattern /* , $arg, ... */) { | ||||
$args = func_get_args(); | $args = func_get_args(); | ||||
return $this->newRemoteCommandPassthru($args)->execute(); | return $this->newRemoteCommandPassthru($args)->resolve(); | ||||
} | } | ||||
private function newRemoteCommandFuture(array $argv) { | private function newRemoteCommandFuture(array $argv) { | ||||
return $this->newRemoteCommandEngine($argv) | return $this->newRemoteCommandEngine($argv) | ||||
->newFuture(); | ->newFuture(); | ||||
} | } | ||||
private function newRemoteCommandPassthru(array $argv) { | private function newRemoteCommandPassthru(array $argv) { | ||||
Show All 24 Lines | /* -( Local Command Execution )-------------------------------------------- */ | ||||
public function getLocalCommandFuture($pattern /* , $arg, ... */) { | public function getLocalCommandFuture($pattern /* , $arg, ... */) { | ||||
$args = func_get_args(); | $args = func_get_args(); | ||||
return $this->newLocalCommandFuture($args); | return $this->newLocalCommandFuture($args); | ||||
} | } | ||||
public function passthruLocalCommand($pattern /* , $arg, ... */) { | public function passthruLocalCommand($pattern /* , $arg, ... */) { | ||||
$args = func_get_args(); | $args = func_get_args(); | ||||
return $this->newLocalCommandPassthru($args)->execute(); | return $this->newLocalCommandPassthru($args)->resolve(); | ||||
} | } | ||||
private function newLocalCommandFuture(array $argv) { | private function newLocalCommandFuture(array $argv) { | ||||
$this->assertLocalExists(); | $this->assertLocalExists(); | ||||
$future = DiffusionCommandEngine::newCommandEngine($this) | $future = DiffusionCommandEngine::newCommandEngine($this) | ||||
->setArgv($argv) | ->setArgv($argv) | ||||
->newFuture(); | ->newFuture(); | ||||
▲ Show 20 Lines • Show All 2,330 Lines • Show Last 20 Lines |