Skip to content

Commit

Permalink
document makeClient function
Browse files Browse the repository at this point in the history
  • Loading branch information
coen-hyde committed Aug 16, 2013
1 parent 6dc8e91 commit 003e81a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tasks/lib/s3.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,12 @@ exports.init = function (grunt) {
return options;
};

/**
* Create an s3 client. Returns an Knox instance.
*
* @param {Object} Format.
* @returns {Object}
*/
var makeClient = exports.makeClient = function(options) {
return knox.createClient(_.pick(options, [
'region', 'endpoint', 'port', 'key', 'secret', 'access', 'bucket', 'secure', 'headers', 'style'
Expand Down

0 comments on commit 003e81a

Please sign in to comment.