module Propellor.Property.EtcDefault (
EtcDefaultFile,
set,
) where
import Propellor.Base
import Propellor.Property.ConfFile
type EtcDefaultFile = String
set :: EtcDefaultFile -> ShellKey -> String -> Property UnixLike
set :: EtcDefaultFile
-> EtcDefaultFile -> EtcDefaultFile -> Property UnixLike
set EtcDefaultFile
f EtcDefaultFile
key EtcDefaultFile
value = EtcDefaultFile
-> (EtcDefaultFile, EtcDefaultFile) -> Property UnixLike
containsShellSetting (EtcDefaultFile
"/etc/default" EtcDefaultFile -> EtcDefaultFile -> EtcDefaultFile
</> EtcDefaultFile
f) (EtcDefaultFile
key, EtcDefaultFile
value)