leedavidr/grunt-artifactory-artifact — pull request #10 by stoopbrain (2013-11-05 18:12:53+00:00)
Title: Bug fix to allow publish task to complete

Hi David,

@mcrmfc and I spotted what looks like a typo bug in the publish task:

The top level deferred was being added to the processes list rather than it's promise. This meant grunt was not waiting for the top level deferred to be resolved before quitting. Typical error:

```
Error: Process exited before Archiver could finish emitting data
at null. (/Users/ashis/dev/itv/ten-foot/node_modules/grunt-artifactory-artifact/node_modules/grunt-contrib-compress/node_modules/archiver/lib/archiver/core.js:79:13)
at process.g (events.js:175:14)
at process.EventEmitter.emit (events.js:117:20)
at process.exit (node.js:707:17)
at Object.exit (/Users/ashis/dev/itv/ten-foot/node_modules/grunt/lib/util/exit.js:24:13)
at Object.task.options.done (/Users/ashis/dev/itv/ten-foot/node_modules/grunt/lib/grunt.js:147:14)
at Task. (/Users/ashis/dev/itv/ten-foot/node_modules/grunt/lib/util/task.js:261:25)
at Task. (/Users/ashis/dev/itv/ten-foot/node_modules/grunt/lib/util/task.js:215:7)
at null._onTimeout (/Users/ashis/dev/itv/ten-foot/node_modules/grunt/lib/util/task.js:225:33)
at Timer.listOnTimeout [as ontimeout] (timers.js:110:15)
```

Cheers, Ash