Added chmod method to rsync types

This commit is contained in:
Dave Keen
2018-02-27 20:52:14 +01:00
parent 81260d4bd0
commit d1d1d18d98
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']);