Differential D21628 Diff 51485 src/applications/repository/management/PhabricatorRepositoryManagementClusterizeWorkflow.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/repository/management/PhabricatorRepositoryManagementClusterizeWorkflow.php
Show First 20 Lines • Show All 55 Lines • ▼ Show 20 Lines | public function execute(PhutilArgumentParser $args) { | ||||
} else { | } else { | ||||
$service = id(new AlmanacServiceQuery()) | $service = id(new AlmanacServiceQuery()) | ||||
->setViewer($viewer) | ->setViewer($viewer) | ||||
->withNames(array($service_name)) | ->withNames(array($service_name)) | ||||
->withServiceTypes( | ->withServiceTypes( | ||||
array( | array( | ||||
AlmanacClusterRepositoryServiceType::SERVICETYPE, | AlmanacClusterRepositoryServiceType::SERVICETYPE, | ||||
)) | )) | ||||
->needBindings(true) | ->needActiveBindings(true) | ||||
->executeOne(); | ->executeOne(); | ||||
if (!$service) { | if (!$service) { | ||||
throw new PhutilArgumentUsageException( | throw new PhutilArgumentUsageException( | ||||
pht( | pht( | ||||
'No repository service "%s" exists.', | 'No repository service "%s" exists.', | ||||
$service_name)); | $service_name)); | ||||
} | } | ||||
} | } | ||||
▲ Show 20 Lines • Show All 79 Lines • Show Last 20 Lines |