mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-01 19:22:42 +01:00
a2588d62e7
Summary: Ref T10697. This just improves a couple of minor `bin/aphlict` things: make argument parsing more explicit/consistent, consolidate a little bit of duplicated code. Test Plan: Ran all `bin/aphlict` commands. Reviewers: chad Reviewed By: chad Maniphest Tasks: T10697 Differential Revision: https://secure.phabricator.com/D15698
24 lines
541 B
PHP
24 lines
541 B
PHP
<?php
|
|
|
|
final class PhabricatorAphlictManagementRestartWorkflow
|
|
extends PhabricatorAphlictManagementWorkflow {
|
|
|
|
protected function didConstruct() {
|
|
$this
|
|
->setName('restart')
|
|
->setSynopsis(pht('Stop, then start the notification server.'))
|
|
->setArguments($this->getLaunchArguments());
|
|
}
|
|
|
|
public function execute(PhutilArgumentParser $args) {
|
|
$this->parseLaunchArguments($args);
|
|
|
|
$err = $this->executeStopCommand();
|
|
if ($err) {
|
|
return $err;
|
|
}
|
|
|
|
return $this->executeStartCommand();
|
|
}
|
|
|
|
}
|