[augeas-devel] Multiple distinct files of the same format

Dean Wilson dean.wilson at gmail.com
Thu Apr 24 11:49:30 UTC 2008


There are a number of files that have identical file formats that live
under /etc and I'd like to see in the augeas tree. What's the best way
of doing this without adding a lot of duplication in each lense? would
it make sense to have additional util classes for each kind of format
(and an associated test case for each) and just have the lense include
it and the files required for that lense? This would make testing each
of the new types a lot easier as well as you'd just add a couple of
cases and let the generic test for that format pick up the rest.

For example there is the single entry per line files (which include
cron.allow cron.deny shells). They all allow comments, comments at the
end of the line and blank lines but are otherwise one 'thing' per
line.

  Dean
-- 
Dean Wilson               http://www.unixdaemon.net
Profanity is the one language all programmers understand
--- Anon




More information about the augeas-devel mailing list