From c6a840ca9f5b451e305018f7f7f8bef1df86193d Mon Sep 17 00:00:00 2001 From: "[T]" Date: Fri, 13 Feb 2015 13:04:08 -0500 Subject: [PATCH] Add 'execSync' option If execSync=true, run the task synchronously --- tasks/rename.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tasks/rename.js b/tasks/rename.js index 0260323..475d514 100644 --- a/tasks/rename.js +++ b/tasks/rename.js @@ -13,10 +13,12 @@ var fs = require('fs'), module.exports = function(grunt) { grunt.registerMultiTask('rename', 'Move and/or rename files.', function() { - var done = this.async(), - options = this.options({ + var options = this.options({ ignore: false, + execSync: false }); + + var done = options.execSync ? (function(){}) : this.async(); //console.log(options);