summaryrefslogtreecommitdiff
path: root/src/Propellor/Property/File.hs
AgeCommit message (Collapse)Author
2015-01-03add hasPrivContentFromJoey Hess
2014-12-14broke up big function to describe PrivDataFieldJoey Hess
2014-12-09fix a case where fileProperty reported a change despite not making oneJoey Hess
The problem occurred because two lists of lines of the file can be different, while representing the same file content. For example: ["foo", "bar"] ["foo\nbar"]
2014-12-07Fixed privdata introspection for User.hasPassword and User.hasSomePasswordJoey Hess
This is not a complete fix for the problem that Info doen't propigate from the called property when code does something like: do hostname <- asks hostName ensureProperty $ foo hostname Instead, I just eliminated the need to implement hasPassword that way, by making the PrivData Info use a HostContext which automatically gets the right hostname passed to it. All other uses of withPrivData don't have the problem. It's still possible for the user to run into the problem if they write something like the above, where foo is a property that uses privdata. However, all properties that take a Context now also accept a HostContext, so it's at least less likely the user needs to write that.
2014-07-17Fix bug in File.containsLines that caused lines that were already in the ↵Joey Hess
file to sometimes be appended to the end.
2014-07-17better hasPrivContentExposedJoey Hess
Avoid locking down and then lossening the file mode; just use the default/current mode from the beginning.
2014-07-06propellor spinJoey Hess
2014-05-14moved source code to srcJoey Hess
This is to work around OSX's brain-damange regarding filename case insensitivity. Avoided moving config.hs, because it's a config file. Put in a symlink to make build work.