Changeset View
Changeset View
Standalone View
Standalone View
src/phage/action/PhageLocalAction.php
<?php | <?php | ||||
final class PhageLocalAction | final class PhageLocalAction | ||||
extends PhageAgentAction { | extends PhageAgentAction { | ||||
protected function newAgentFuture(PhutilCommandString $command) { | protected function newAgentFuture(PhutilCommandString $command) { | ||||
return new ExecFuture('sh -c %s', $command); | $arcanist_src = phutil_get_library_root('arcanist'); | ||||
$bin_dir = Filesystem::concatenatePaths( | |||||
array( | |||||
dirname($arcanist_src), | |||||
'bin', | |||||
)); | |||||
$future = id(new ExecFuture('%s exec -- %C', './phage', $command)) | |||||
->setCWD($bin_dir); | |||||
return $future; | |||||
} | } | ||||
} | } |