nkostelnik/gulp-s3 — pull request #38 by ken210 (2014-12-09 21:46:57+00:00)
Title: Adding retries option

Hello! First of all i wish to thank you guys for the great project.

Sometimes, when you got any problem with your network, and your upload fails, you can't retry it.
So I added the `retries` option that allows you to set how many times you wish gulp-s3 will retry to send your file.

```JavaScript
var s3 = require("gulp-s3");
var aws = {
"key": "AKIAI3Z7CUAFHG53DMJA",
"secret": "acYxWRu5RRa6CwzQuhdXEfTpbQA+1XQJ7Z1bGTCx",
"bucket": "dev.example.com",
"region": "eu-west-1"
};
var options = {
headers: {
'Cache-Control': 'max-age=315360000, no-transform, public'
},
retries: 3
};
gulp.src('./dist/**')
.pipe(s3(aws, options));
```