LXer has a very nice summary of Raphael’s talk on Augeas — though, contrary to what the author says, writing lenses (i.e., the plumbing that explains to Augeas how to map a config file into the tree) is not hard. You can mostly focus on how to take your file apart with regular expressions and how their matches should be mapped into the tree, and get the mapping from tree back to file for free.
None of this lens writing is of importance if you only want to use Augeas to modify files — as the author notes, reading the Quick Tour will explain most of what you need to know.
Watzmann.Blog by David Lutterkort is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.
Generated with Jekyll