diff options
| author | Joey Hess <joey@kitenet.net> | 2014-03-30 13:12:33 -0400 |
|---|---|---|
| committer | Joey Hess <joey@kitenet.net> | 2014-03-30 13:12:33 -0400 |
| commit | 8e7b296e820e7513c7846ceeb3fbd87d60bc95f4 (patch) | |
| tree | 4eb80ad32b42ee871f5704cd1af99baf9e8cacc6 /Property/Hostname.hs | |
| parent | e741b7b82e0b5be2809d1da7f54d8b0fcd0449e3 (diff) | |
split out Property.FIle
Diffstat (limited to 'Property/Hostname.hs')
| -rw-r--r-- | Property/Hostname.hs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Property/Hostname.hs b/Property/Hostname.hs index 7baf7178..38e9dbe8 100644 --- a/Property/Hostname.hs +++ b/Property/Hostname.hs @@ -1,11 +1,11 @@ module Property.Hostname where import Property +import qualified Property.File as File import Utility.SafeCommand type HostName = String set :: HostName -> Property -set hostname = - fileHasContent "/etc/hostname" [hostname] - `onChange` cmdProperty "hostname" [Param hostname] +set hostname = "/etc/hostname" `File.hasContent` [hostname] + `onChange` cmdProperty "hostname" [Param hostname] |
