summaryrefslogtreecommitdiff
path: root/src/Propellor/Property/Systemd.hs
diff options
context:
space:
mode:
authorJoey Hess2015-01-19 14:15:49 -0400
committerJoey Hess2015-01-19 14:15:49 -0400
commit1ae21965aaba0303088052e873fea39708e331ed (patch)
tree918a8e0575e6369e3d94598d675b089c54579cf2 /src/Propellor/Property/Systemd.hs
parentdb93c41f90e9ad68854b6b219fc9fe6d12085600 (diff)
rename HostLike to PropAccum
This is more general; it doesn't need to contain a Host. It would, for example, be possible to make Property itself be an instance of PropAccum.
Diffstat (limited to 'src/Propellor/Property/Systemd.hs')
-rw-r--r--src/Propellor/Property/Systemd.hs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Propellor/Property/Systemd.hs b/src/Propellor/Property/Systemd.hs
index e80c32be..7fe600a0 100644
--- a/src/Propellor/Property/Systemd.hs
+++ b/src/Propellor/Property/Systemd.hs
@@ -33,10 +33,10 @@ type MachineName = String
data Container = Container MachineName Chroot.Chroot Host
deriving (Show)
-instance Hostlike Container where
- (Container n c h) & p = Container n c (h & p)
- (Container n c h) &^ p = Container n c (h &^ p)
- getHost (Container _ _ h) = h
+instance PropAccum Container where
+ (Container n c h) & p = Container n c (h & p)
+ (Container n c h) &^ p = Container n c (h &^ p)
+ getProperties (Container _ _ h) = hostProperties h
-- | Starts a systemd service.
started :: ServiceName -> Property