From 9b6a85cf8590a3af0e60db5955b166374f13a0d0 Mon Sep 17 00:00:00 2001 From: TCB13 Date: Mon, 22 May 2017 02:52:50 +0100 Subject: [PATCH] Adds `chown` option and its docs. (#42) --- README.md | 6 ++++++ index.js | 1 + 2 files changed, 7 insertions(+) diff --git a/README.md b/README.md index d3ebf44..9fef93d 100644 --- a/README.md +++ b/README.md @@ -295,6 +295,12 @@ Enables files or directories matching the pattern(s) provided to be excluded from the transfer. This is probably most useful when `recursive` is set to `true` since it is typically better to make these exclusions in `gulp.src()`. +###### `chown` + +Type: `string`, Compares to: `rsync --chown=STRING` + +Forces all remote files to be owned by the USER:GROUP provided in the string. If GROUP is empty, the trailing colon may be omitted, but if USER is empty, a leading colon must be supplied. If you're running macOS please check your rsync version with `rsync --version`. The default system version, older than 3.1.0, doesn't support this option. You can fix this by installing a recent version from Brew (`brew install homebrew/dupes/rsync`) or MacPorts (`sudo port install rsync`). + ###### `exclude` Type: `string|Array`, Compares to: `rsync --exclude=PATTERN` diff --git a/index.js b/index.js index 14e1c2a..4b581ba 100644 --- a/index.js +++ b/index.js @@ -87,6 +87,7 @@ module.exports = function(options) { 'v': !options.silent, 'z': options.compress, 'chmod': options.chmod, + 'chown': options.chown, 'exclude': options.exclude, 'include': options.include, 'progress': options.progress,