Merge pull request #1225 from marcoAntonioNina/master
Improvement the number of workspace in upgrade.
This commit is contained in:
@@ -105,10 +105,12 @@ function run_upgrade($command, $args)
|
|||||||
$count = count($workspaces);
|
$count = count($workspaces);
|
||||||
$first = true;
|
$first = true;
|
||||||
$errors = false;
|
$errors = false;
|
||||||
|
$countWorkspace = 1;
|
||||||
$buildCacheView = array_key_exists("buildACV", $args);
|
$buildCacheView = array_key_exists("buildACV", $args);
|
||||||
foreach ($workspaces as $index => $workspace) {
|
foreach ($workspaces as $index => $workspace) {
|
||||||
try {
|
try {
|
||||||
CLI::logging("Upgrading workspaces ($index/$count): " . CLI::info($workspace->name) . "\n");
|
$countWorkspace = $countWorkspace + $index;
|
||||||
|
CLI::logging("Upgrading workspaces ($countWorkspace/$count): " . CLI::info($workspace->name) . "\n");
|
||||||
$workspace->upgrade($first, $buildCacheView, $workspace->name);
|
$workspace->upgrade($first, $buildCacheView, $workspace->name);
|
||||||
$workspace->close();
|
$workspace->close();
|
||||||
$first = false;
|
$first = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user