Safe Haskell | None |
---|---|
Language | Haskell2010 |
Propellor.Property.Rsync
Synopsis
- type Src = FilePath
- type Dest = FilePath
- class RsyncParam p where
- filesUnder :: FilePath -> Pattern
- syncDir :: Src -> Dest -> Property (DebianLike + ArchLinux)
- data Filter
- newtype Pattern = Pattern String
- syncDirFiltered :: [Filter] -> Src -> Dest -> Property (DebianLike + ArchLinux)
- rsync :: [String] -> Property (DebianLike + ArchLinux)
- installed :: Property (DebianLike + ArchLinux)
Documentation
class RsyncParam p where Source #
Instances
filesUnder :: FilePath -> Pattern Source #
A pattern that matches all files under a directory, but does not match the directory itself.
syncDir :: Src -> Dest -> Property (DebianLike + ArchLinux) Source #
Ensures that the Dest directory exists and has identical contents as the Src directory.
Instances
A pattern to match against files that rsync is going to transfer.
See "INCLUDE/EXCLUDE PATTERN RULES" in the rsync(1) man page.
For example, Pattern "foo*" matches all files under the "foo"
directory, relative to the Src
that rsync is acting on.
syncDirFiltered :: [Filter] -> Src -> Dest -> Property (DebianLike + ArchLinux) Source #
Like syncDir, but avoids copying anything that the filter list excludes. Anything that's filtered out will be deleted from Dest.
Rsync checks each name to be transferred against its list of Filter rules, and the first matching one is acted on. If no matching rule is found, the file is processed.