Skip to content

Commit

Permalink
Merge pull request #18 from InVisionApp/cluster-async
Browse files Browse the repository at this point in the history
minor: switch to process clusters in async manor
  • Loading branch information
c1freitas authored Sep 15, 2016
2 parents 145ef01 + 9a9ed17 commit 5e14f81
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/lib/deploymentizer.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,11 @@ class Deploymentizer {
const clusterDefs = yield yamlHandler.loadClusterDefinitions(this.paths.cluster);

//Merge the definitions, render templates and save (if enabled)
let processClusters = [];
for (let i=0; i < clusterDefs.length; i++) {
yield this.processClusterDef( clusterDefs[i], typeDefinitions, baseClusterDef, imageResources, configPlugin )
processClusters.push(this.processClusterDef( clusterDefs[i], typeDefinitions, baseClusterDef, imageResources, configPlugin ));
};
yield Promise.all(processClusters);
this.events.emitInfo(`Finished processing files...` );
}).bind(this)();
}
Expand Down

0 comments on commit 5e14f81

Please sign in to comment.