Skip to content

Commit

Permalink
Adds chown option and its docs. (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
TCB13 authored and Eki Baskoro committed May 22, 2017
1 parent 2adb2e7 commit 9b6a85c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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<string>`, Compares to: `rsync --exclude=PATTERN`
Expand Down
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 9b6a85c

Please sign in to comment.