propellor-0.2.0: property-based host configuration management in haskell

Safe HaskellNone

Propellor.Property

Synopsis

Documentation

propertyList :: Desc -> [Property] -> PropertySource

Combines a list of properties, resulting in a single property that when run will run each property in the list in turn, and print out the description of each as it's run. Does not stop on failure; does propigate overall success/failure.

combineProperties :: Desc -> [Property] -> PropertySource

Combines a list of properties, resulting in one property that ensures each in turn, stopping on failure.

flagFile :: Property -> FilePath -> PropertySource

Makes a perhaps non-idempotent Property be idempotent by using a flag file to indicate whether it has run before. Use with caution.

check :: IO Bool -> Property -> PropertySource

Makes a Property only be performed when a test succeeds.

revert :: RevertableProperty -> RevertablePropertySource

Undoes the effect of a property.

props :: [Property]Source

Starts a list of Properties

(&) :: IsProp p => [Property] -> p -> [Property]Source

Adds a property to the list. Can add both Properties and RevertableProperties.