Skip to content

Instantly share code, notes, and snippets.

@NickHeiner
Created February 18, 2015 22:46
Show Gist options
  • Save NickHeiner/37bfa3611d34d308f3e7 to your computer and use it in GitHub Desktop.
Save NickHeiner/37bfa3611d34d308f3e7 to your computer and use it in GitHub Desktop.
bad bad bad bad
q.all(_.map(this.options(), function(configPromiseFn, configKey) {
var configPromise = configPromiseFn();
return q(configPromise).then(function(configVal) {
grunt.verbose.ok('set-async-config: Setting key "' + configKey + '" to "' + configVal + '"');
grunt.config(configKey, configVal);
});
}));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment