Remove product literal strings in "pht()", part 8
[phabricator.git] / src / applications / daemon / management / PhabricatorDaemonManagementStartWorkflow.php
blobbd23d3bc7d97f4349dcf58ad03379f55dec5227a
1 <?php
3 final class PhabricatorDaemonManagementStartWorkflow
4 extends PhabricatorDaemonManagementWorkflow {
6 protected function didConstruct() {
7 $this
8 ->setName('start')
9 ->setSynopsis(
10 pht(
11 'Start the standard configured collection of Phabricator daemons. '.
12 'This is appropriate for most installs. Use **%s** to '.
13 'customize which daemons are launched.',
14 'phd launch'))
15 ->setArguments(
16 array(
17 array(
18 'name' => 'keep-leases',
19 'help' => pht(
20 'By default, **%s** will free all task leases held by '.
21 'the daemons. With this flag, this step will be skipped.',
22 'phd start'),
24 array(
25 'name' => 'force',
26 'help' => pht('Start daemons even if daemons are already running.'),
28 $this->getAutoscaleReserveArgument(),
29 ));
32 public function execute(PhutilArgumentParser $args) {
33 return $this->executeStartCommand(
34 array(
35 'keep-leases' => $args->getArg('keep-leases'),
36 'force' => $args->getArg('force'),
37 'reserve' => (float)$args->getArg('autoscale-reserve'),
38 ));