Esempio n. 1
0
 public function __construct($sockname, $repo_root, $args, array $command)
 {
     $this->command = json_encode($command);
     $console = PhutilConsole::getConsole();
     $console->writeLog("cli query: %s\n", $this->command);
     $future = new ExecFuture("%C {$args} -U %s %s %s %s %s", "{$repo_root}/watchman", $sockname, '--no-pretty', '--no-spawn', '--no-local', '-j');
     $cwd = getcwd();
     if (!$cwd) {
         throw new Exception("can't figure out my cwd!?");
     }
     $future->setCWD($cwd);
     $future->write($this->command . "\n");
     parent::__construct($future);
 }
Esempio n. 2
0
 public function __construct()
 {
     parent::__construct(null);
 }
 public function __construct(Future $proxied, $source, $scrub = false)
 {
     parent::__construct($proxied);
     $this->source = $source;
     $this->scrub = $scrub;
 }
 public function __construct(Future $proxied, $source)
 {
     parent::__construct($proxied);
     $this->source = $source;
 }