summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJoey Hess2016-03-27 18:37:02 -0400
committerJoey Hess2016-03-27 18:37:02 -0400
commit3383d008c7df57e6b5dd066fa1dfa80ac39cdd8e (patch)
tree2bacb7c0729da1a9c6f4fb741d551551ba7ce57f /src
parent500635568514bc106597a857c60d268dcf668037 (diff)
propellor spin
Diffstat (limited to 'src')
-rw-r--r--src/Propellor.hs7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/Propellor.hs b/src/Propellor.hs
index 9c5a85a9..e6a52948 100644
--- a/src/Propellor.hs
+++ b/src/Propellor.hs
@@ -14,13 +14,14 @@
-- > main = defaultMain hosts
-- >
-- > hosts :: [Host]
--- > hosts =
--- > [ host "example.com"
+-- > hosts = [example]
+-- >
+-- > example :: Host
+-- > example = host "example.com" $ props
-- > & Apt.installed ["mydaemon"]
-- > & "/etc/mydaemon.conf" `File.containsLine` "secure=1"
-- > `onChange` cmdProperty "service" ["mydaemon", "restart"]
-- > ! Apt.installed ["unwantedpackage"]
--- > ]
--
-- See config.hs for a more complete example, and clone Propellor's
-- git repository for a deployable system using Propellor: