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

Safe HaskellNone

Propellor.Property.Cmd

Synopsis

Documentation

cmdProperty :: String -> [String] -> PropertySource

A property that can be satisfied by running a command.

The command must exit 0 on success.

cmdProperty' :: String -> [String] -> [(String, String)] -> PropertySource

A property that can be satisfied by running a command, with added environment.

scriptProperty :: [String] -> PropertySource

A property that can be satisfied by running a series of shell commands.

userScriptProperty :: UserName -> [String] -> PropertySource

A property that can satisfied by running a series of shell commands, as user (cd'd to their home directory).