Skip to content

Commit

Permalink
Merge pull request #156 from daemonl/master
Browse files Browse the repository at this point in the history
Adds gid and uid option to file, pass through to archiver.
  • Loading branch information
shama committed Feb 16, 2016
2 parents d196112 + 37e786c commit fd63f99
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,19 @@ If true, file contents will be archived without compression.
Type: `String`
Modes: `zip`

#### gid
Type: `Integer`
Modes: `tar` `tgz`

Sets the group of the file in the archive

#### uid
Type: `Integer`
Modes: `tar` `tgz`

Sets the user of the file in the archive


Sets the file comment.

### Usage Examples
Expand Down
2 changes: 1 addition & 1 deletion tasks/lib/compress.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ module.exports = function(grunt) {
var archive = archiver.create(mode, exports.options);
var dest = exports.options.archive;

var dataWhitelist = ['comment', 'date', 'mode', 'store'];
var dataWhitelist = ['comment', 'date', 'mode', 'store', 'gid', 'uid'];
var sourcePaths = {};

// Ensure dest folder exists
Expand Down

0 comments on commit fd63f99

Please sign in to comment.