Add support for async ops using async/await

This commit is contained in:
toby 2017-04-21 17:48:42 -04:00
parent 07bb095e73
commit c39622ed1e
5 changed files with 11 additions and 11 deletions

View file

@ -73,11 +73,11 @@ App.prototype.handleError = function(err) {
* @param {boolean} [step] - Set to true if we should only execute one operation instead of the
* whole recipe.
*/
App.prototype.bake = function(step) {
App.prototype.bake = async function(step) {
var response;
try {
response = this.chef.bake(
response = await this.chef.bake(
this.getInput(), // The user's input
this.getRecipeConfig(), // The configuration of the recipe
this.options, // Options set by the user