diff options
| author | Joey Hess <joeyh@joeyh.name> | 2015-10-23 15:43:06 -0400 |
|---|---|---|
| committer | Joey Hess <joeyh@joeyh.name> | 2015-10-23 15:43:06 -0400 |
| commit | 42ed4b5e68ec84106850c07904ee6124a7805742 (patch) | |
| tree | 9e49ef3e9a8d02d1951e07d1c31119e5eb7d5844 /src/Propellor/Property/Rsync.hs | |
| parent | 3f17dd7cbef4ec6bbccc368e07be964dc7f9570b (diff) | |
| parent | 3aee86abac10f1ad9d4b51c024f5f3c02cdbfc68 (diff) | |
Merge branch 'joeyconfig'
Diffstat (limited to 'src/Propellor/Property/Rsync.hs')
| -rw-r--r-- | src/Propellor/Property/Rsync.hs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Propellor/Property/Rsync.hs b/src/Propellor/Property/Rsync.hs index 894b8cc7..cae3c877 100644 --- a/src/Propellor/Property/Rsync.hs +++ b/src/Propellor/Property/Rsync.hs @@ -22,10 +22,12 @@ syncDir = syncDirFiltered [] data Filter = Include Pattern | Exclude Pattern + | Protect Pattern instance RsyncParam Filter where toRsync (Include (Pattern p)) = "--include=" ++ p toRsync (Exclude (Pattern p)) = "--exclude=" ++ p + toRsync (Protect (Pattern p)) = "--filter=P " ++ p -- | A pattern to match against files that rsync is going to transfer. -- |
