Differential D14073 Diff 34741 src/applications/celerity/management/CelerityManagementMapWorkflow.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/celerity/management/CelerityManagementMapWorkflow.php
Show All 12 Lines | final class CelerityManagementMapWorkflow | ||||
} | } | ||||
public function execute(PhutilArgumentParser $args) { | public function execute(PhutilArgumentParser $args) { | ||||
$resources_map = CelerityPhysicalResources::getAll(); | $resources_map = CelerityPhysicalResources::getAll(); | ||||
$this->log( | $this->log( | ||||
pht( | pht( | ||||
'Rebuilding %d resource source(s).', | 'Rebuilding %d resource source(s).', | ||||
new PhutilNumber(count($resources_map)))); | phutil_count($resources_map))); | ||||
foreach ($resources_map as $name => $resources) { | foreach ($resources_map as $name => $resources) { | ||||
$this->rebuildResources($resources); | $this->rebuildResources($resources); | ||||
} | } | ||||
$this->log(pht('Done.')); | $this->log(pht('Done.')); | ||||
return 0; | return 0; | ||||
Show All 27 Lines |