summaryrefslogtreecommitdiff
path: root/src/Propellor/Engine.hs
diff options
context:
space:
mode:
authorJoey Hess <joeyh@joeyh.name>2015-10-10 15:17:15 -0400
committerJoey Hess <joeyh@joeyh.name>2015-10-10 15:17:15 -0400
commit480a25aaa804208d76cd362c9a6bd222ec66dee6 (patch)
tree7fae0a11735caab29e5c1106a243d7527b25e3d8 /src/Propellor/Engine.hs
parent1799f634d89f588eeaef6ff2f6226adf5add3389 (diff)
parent63d653ee19b0f1bf2f4115d9f4ae9a93b00bae90 (diff)
Merge branch 'joeyconfig'
Diffstat (limited to 'src/Propellor/Engine.hs')
-rw-r--r--src/Propellor/Engine.hs8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/Propellor/Engine.hs b/src/Propellor/Engine.hs
index dd3d4653..0fdbb995 100644
--- a/src/Propellor/Engine.hs
+++ b/src/Propellor/Engine.hs
@@ -26,6 +26,7 @@ import Propellor.Types
import Propellor.Message
import Propellor.Exception
import Propellor.Info
+import Propellor.Property
import Utility.Exception
import Utility.PartialPrelude
import Utility.Monad
@@ -62,13 +63,6 @@ runEndAction host res (EndAction desc a) = actionMessageOn (hostName host) desc
(ret, _s, _) <- runRWST (runWithHost (catchPropellor (a res))) host ()
return ret
--- | For when code running in the Propellor monad needs to ensure a
--- Property.
---
--- This can only be used on a Property that has NoInfo.
-ensureProperty :: Property NoInfo -> Propellor Result
-ensureProperty = catchPropellor . propertySatisfy
-
-- | Ensures a list of Properties, with a display of each as it runs.
ensureProperties :: [Property NoInfo] -> Propellor Result
ensureProperties ps = ensure ps NoChange