Skip to content

Commit

Permalink
Add an optional enabled field to allow sync rules to be disabled cond…
Browse files Browse the repository at this point in the history
…itionally
  • Loading branch information
Struan McDonough authored and Struan McDonough committed Sep 21, 2022
1 parent 726eb2b commit 2015435
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,9 @@ class ServerlessS3Sync {
if (s.hasOwnProperty('acl')) {
acl = s.acl;
}
if (s.hasOwnProperty('enabled') && s.enabled === false) {
return;
}
let followSymlinks = false;
if (s.hasOwnProperty('followSymlinks')) {
followSymlinks = s.followSymlinks;
Expand Down

0 comments on commit 2015435

Please sign in to comment.