Merge pull request #23959 from ccapndave/rsync-add-chmod

Added chmod method to rsync types
This commit is contained in:
Armando Aguirre
2018-03-08 15:54:37 -08:00
committed by GitHub
2 changed files with 4 additions and 2 deletions
+2 -1
View File
@@ -48,7 +48,7 @@ interface Rsync {
stdout: StreamDataHandler,
stderr: StreamDataHandler
): child_process.ChildProcess;
// cwd
cwd(cwd: string): string;
@@ -63,6 +63,7 @@ interface Rsync {
quiet(): Rsync;
dirs(): Rsync;
links(): Rsync;
chmod(flags: string): Rsync;
dry(): Rsync;
// accessor methods
+2 -1
View File
@@ -114,6 +114,7 @@ rsync.shell('ssh')
.quiet()
.dirs()
.links()
.chmod("ug=rwX")
.dry();
@@ -152,4 +153,4 @@ rsync.include('/a/file')
.include('/b/file');
// as Array
rsync.include(['/a/file', '/b/file']);
rsync.include(['/a/file', '/b/file']);