Steve Wray wrote:
> The set of trivial things for editfiles to do turns out to be pretty
> small!
Disagree. Here are a few counterexamples:
DeleteLinesStarting "foo="
AppendIfNoSuchLine "# The reason for setting foo to bar is ..."
AppendIfNoSuchLine "foo=bar"
PrependIfNoSuchLine "# Edited by cfengine"
AutoCreate
EmptyEntireFilePlease
InsertFile "file.header"
InsertFile "file.${fqhost}"
InsertFile "file.footer"
However, more than the rest of cfengine, editfiles allows you to shoot
yourself in the foot. What we need is a cfengine 2 editfiles style
guide.
Best,
Brendan
--
Senior System Administrator
The University of Chicago
Department of Computer Science
http://www.cs.uchicago.edu/people/brendan
http://people.cs.uchicago.edu/~brendan
_______________________________________________
Help-cfengine mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-cfengine