Page MenuHomePhabricator

D17780.diff
No OneTemporary

D17780.diff

diff --git a/src/__phutil_library_map__.php b/src/__phutil_library_map__.php
--- a/src/__phutil_library_map__.php
+++ b/src/__phutil_library_map__.php
@@ -2474,6 +2474,7 @@
'PhabricatorDaemonLogListView' => 'applications/daemon/view/PhabricatorDaemonLogListView.php',
'PhabricatorDaemonLogQuery' => 'applications/daemon/query/PhabricatorDaemonLogQuery.php',
'PhabricatorDaemonLogViewController' => 'applications/daemon/controller/PhabricatorDaemonLogViewController.php',
+ 'PhabricatorDaemonManagementCheckWorkflow' => 'applications/daemon/management/PhabricatorDaemonManagementCheckWorkflow.php',
'PhabricatorDaemonManagementDebugWorkflow' => 'applications/daemon/management/PhabricatorDaemonManagementDebugWorkflow.php',
'PhabricatorDaemonManagementLaunchWorkflow' => 'applications/daemon/management/PhabricatorDaemonManagementLaunchWorkflow.php',
'PhabricatorDaemonManagementListWorkflow' => 'applications/daemon/management/PhabricatorDaemonManagementListWorkflow.php',
@@ -7584,6 +7585,7 @@
'PhabricatorDaemonLogListView' => 'AphrontView',
'PhabricatorDaemonLogQuery' => 'PhabricatorCursorPagedPolicyAwareQuery',
'PhabricatorDaemonLogViewController' => 'PhabricatorDaemonController',
+ 'PhabricatorDaemonManagementCheckWorkflow' => 'PhabricatorDaemonManagementWorkflow',
'PhabricatorDaemonManagementDebugWorkflow' => 'PhabricatorDaemonManagementWorkflow',
'PhabricatorDaemonManagementLaunchWorkflow' => 'PhabricatorDaemonManagementWorkflow',
'PhabricatorDaemonManagementListWorkflow' => 'PhabricatorDaemonManagementWorkflow',
diff --git a/src/applications/daemon/management/PhabricatorDaemonManagementCheckWorkflow.php b/src/applications/daemon/management/PhabricatorDaemonManagementCheckWorkflow.php
new file mode 100644
--- /dev/null
+++ b/src/applications/daemon/management/PhabricatorDaemonManagementCheckWorkflow.php
@@ -0,0 +1,36 @@
+<?php
+
+final class PhabricatorDaemonManagementCheckWorkflow
+ extends PhabricatorDaemonManagementWorkflow {
+
+ protected function didConstruct() {
+ $this
+ ->setName('check')
+ ->setSynopsis(pht('Check daemon setup.'));
+ }
+
+ public function execute(PhutilArgumentParser $args) {
+ $console = PhutilConsole::getConsole();
+
+ $check = new PhabricatorDaemonsSetupCheck();
+ $check->runSetupChecks();
+ $issues = $check->getIssues();
+
+ if (empty($issues)) {
+ $console->writeOut(
+ "**%s**\n",
+ pht('There are no Phabricator daemon issues to resolve.'));
+ return 0;
+ }
+
+ foreach ($issues as $issue) {
+ $console->writeOut(
+ "**%s**\n%s\n",
+ $issue->getName(),
+ $issue->getSummary());
+ }
+
+ return 1;
+ }
+
+}
diff --git a/src/applications/daemon/management/PhabricatorDaemonManagementStatusWorkflow.php b/src/applications/daemon/management/PhabricatorDaemonManagementStatusWorkflow.php
--- a/src/applications/daemon/management/PhabricatorDaemonManagementStatusWorkflow.php
+++ b/src/applications/daemon/management/PhabricatorDaemonManagementStatusWorkflow.php
@@ -101,6 +101,8 @@
}
$table->draw();
+
+ return $status;
}
}

File Metadata

Mime Type
text/plain
Expires
Fri, Dec 20, 4:47 AM (21 h, 1 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6909538
Default Alt Text
D17780.diff (3 KB)

Event Timeline