From a6790167e9ee14d818a88e3f8164cfd7608ec2d5 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Fri, 23 Oct 2015 13:06:38 -0400 Subject: propellor spin --- src/Propellor/Property/Rsync.hs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/Propellor/Property/Rsync.hs') 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. -- -- cgit v1.3-2-g0d8e