Safe Haskell | None |
---|
- type Line = String
- hasContent :: FilePath -> [Line] -> Property
- hasPrivContent :: FilePath -> Property
- containsLine :: FilePath -> Line -> Property
- lacksLine :: FilePath -> Line -> Property
- notPresent :: FilePath -> Property
- fileProperty :: Desc -> ([Line] -> [Line]) -> FilePath -> Property
- dirExists :: FilePath -> Property
- ownerGroup :: FilePath -> UserName -> GroupName -> Property
Documentation
hasContent :: FilePath -> [Line] -> PropertySource
Replaces all the content of a file.
hasPrivContent :: FilePath -> PropertySource
Ensures a file has contents that comes from PrivData. Note: Does not do anything with the permissions of the file to prevent it from being seen.
containsLine :: FilePath -> Line -> PropertySource
Ensures that a line is present in a file, adding it to the end if not.
lacksLine :: FilePath -> Line -> PropertySource
Ensures that a line is not present in a file. Note that the file is ensured to exist, so if it doesn't, an empty file will be written.
notPresent :: FilePath -> PropertySource
Removes a file. Does not remove symlinks or non-plain-files.