From 3383d008c7df57e6b5dd066fa1dfa80ac39cdd8e Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Sun, 27 Mar 2016 18:37:02 -0400 Subject: propellor spin --- src/Propellor.hs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/Propellor.hs') 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: -- cgit v1.2.3