summaryrefslogtreecommitdiff
path: root/src/Propellor/Property/Rsync.hs
diff options
context:
space:
mode:
authorJoey Hess2017-07-25 17:48:47 -0400
committerJoey Hess2017-07-25 17:48:47 -0400
commitd35c1c7ad1539da24e6ab071d8d669912f330f0c (patch)
tree489bdecd13326907d4cc827b4371d17f4c057e8e /src/Propellor/Property/Rsync.hs
parent0f1f0b7a75398bbf1155d429612bd20415731bd1 (diff)
new properties
* Added Rsync.installed property. * Added DiskImage.vmdkBuilt property which is useful for booting a disk image in VirtualBox.
Diffstat (limited to 'src/Propellor/Property/Rsync.hs')
-rw-r--r--src/Propellor/Property/Rsync.hs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/Propellor/Property/Rsync.hs b/src/Propellor/Property/Rsync.hs
index 53baa74e..5665ab91 100644
--- a/src/Propellor/Property/Rsync.hs
+++ b/src/Propellor/Property/Rsync.hs
@@ -60,4 +60,7 @@ syncDirFiltered filters src dest = rsync $
rsync :: [String] -> Property (DebianLike + ArchLinux)
rsync ps = cmdProperty "rsync" ps
`assume` MadeChange
- `requires` Apt.installed ["rsync"] `pickOS` Pacman.installed ["rsync"]
+ `requires` installed
+
+installed :: Property (DebianLike + ArchLinux)
+installed = Apt.installed ["rsync"] `pickOS` Pacman.installed ["rsync"]