Skip to content

Commit

Permalink
Adjust comments describing the fetch functions
Browse files Browse the repository at this point in the history
  • Loading branch information
kevva committed Oct 10, 2013
1 parent 3bddf71 commit 73c1881
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions lib/actions/fetch.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ var proxy = process.env.http_proxy || process.env.HTTP_PROXY ||
process.env.https_proxy || process.env.HTTPS_PROXY || '';

/**
* Download a single file to a given destination.
* Download a string or an array of files to a given destination.
*
* @param {String} url
* @param {String|Array} url
* @param {String} destination
* @param {Function} cb
*/
Expand All @@ -32,9 +32,10 @@ fetch.fetch = function _fetch(url, destination, cb) {
};

/**
* Fetch an archive and extract it to a given destination.
* Fetch a string or an array of archives and extract it/them to a given
* destination.
*
* @param {String} archive
* @param {String|Array} archive
* @param {String} destination
* @param {Function} cb
*/
Expand All @@ -45,6 +46,7 @@ fetch.extract = function _extract(archive, destination, cb) {
proxy: proxy,
strip: 1
};

var dl = download(archive, destination, opts);
var log = this.log.write()
.info('... Fetching %s ...', archive)
Expand Down

0 comments on commit 73c1881

Please sign in to comment.