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) { | ||||
$arcanist_src = phutil_get_library_root('arcanist'); | $arcanist_src = phutil_get_library_root('arcanist'); | ||||
$bin_dir = Filesystem::concatenatePaths( | $bin_dir = Filesystem::concatenatePaths( | ||||
array( | array( | ||||
dirname($arcanist_src), | dirname($arcanist_src), | ||||
'bin', | 'bin', | ||||
)); | )); | ||||
$future = id(new ExecFuture('%s exec -- %C', './phage', $command)) | $future = (new ExecFuture('%s exec -- %C', './phage', $command)) | ||||
->setCWD($bin_dir); | ->setCWD($bin_dir); | ||||
return $future; | return $future; | ||||
} | } | ||||
} | } |
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