[ Index ] |
PHP Cross Reference of Phabricator |
[Summary view] [Print] [Text view]
1 <?php 2 3 final class PhabricatorAphlictManagementStatusWorkflow 4 extends PhabricatorAphlictManagementWorkflow { 5 6 public function didConstruct() { 7 $this 8 ->setName('status') 9 ->setSynopsis(pht('Show the status of the notifications server.')) 10 ->setArguments(array()); 11 } 12 13 public function execute(PhutilArgumentParser $args) { 14 $console = PhutilConsole::getConsole(); 15 $pid = $this->getPID(); 16 17 if (!$pid) { 18 $console->writeErr(pht("Aphlict is not running.\n")); 19 return 1; 20 } 21 22 $console->writeOut(pht("Aphlict (%s) is running.\n", $pid)); 23 return 0; 24 } 25 26 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Sun Nov 30 09:20:46 2014 | Cross-referenced by PHPXref 0.7.1 |