Skip to content

Commit

Permalink
TASK: Output currently processed workspace
Browse files Browse the repository at this point in the history
  • Loading branch information
dfeyer committed Aug 4, 2016
1 parent d172650 commit 65e422f
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,14 @@ public function buildCommand($workspace = null)

if ($workspace === null) {
foreach ($this->workspaceRepository->findAll() as $workspace) {
$this->indexWorkspace($workspace->getName(), $indexPostfix);
$workspace = $workspace->getName();
$this->outputLine();
$this->outputLine(sprintf('<info>++</info> Indexing %s workspace', $workspace));
$this->indexWorkspace($workspace, $indexPostfix);
}
} else {
$this->outputLine();
$this->outputLine(sprintf('<info>++</info> Indexing only %s workspace', $workspace));
$this->indexWorkspace($workspace, $indexPostfix);
}
$updateAliasJob = new UpdateAliasJob($indexPostfix);
Expand Down Expand Up @@ -130,6 +135,7 @@ protected function indexWorkspace($workspaceName, $indexPostfix)
$offset += $batchSize;
$this->persistenceManager->clearState();
}
$this->outputLine();
}

/**
Expand Down

0 comments on commit 65e422f

Please sign in to comment.