diff options
Diffstat (limited to 'src/Propellor/Attr.hs')
| -rw-r--r-- | src/Propellor/Attr.hs | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/src/Propellor/Attr.hs b/src/Propellor/Attr.hs index 8f1c6b7c..29d7a01e 100644 --- a/src/Propellor/Attr.hs +++ b/src/Propellor/Attr.hs @@ -15,9 +15,6 @@ import Control.Applicative pureAttrProperty :: Desc -> Attr -> Property pureAttrProperty desc = Property ("has " ++ desc) (return NoChange) -getHostName :: Propellor HostName -getHostName = asks _hostName - os :: System -> Property os system = pureAttrProperty ("Operating " ++ show system) $ mempty { _os = Just system } @@ -63,14 +60,8 @@ sshPubKey k = pureAttrProperty ("ssh pubkey known") $ getSshPubKey :: Propellor (Maybe String) getSshPubKey = asks (_sshPubKey . hostAttr) -hostAttr :: Host -> Attr -hostAttr (Host _ _ attr) = attr - -hostProperties :: Host -> [Property] -hostProperties (Host _ ps _) = ps - hostMap :: [Host] -> M.Map HostName Host -hostMap l = M.fromList $ zip (map _hostName l) l +hostMap l = M.fromList $ zip (map hostName l) l findHost :: [Host] -> HostName -> Maybe Host findHost l hn = M.lookup hn (hostMap l) |
