[augeas-devel] Re: [PATCH] Add lens and test for dnsmasq.conf
Free Ekanayaka
free at 64studio.com
Thu Sep 4 21:39:36 UTC 2008
Hi Raphaël,
|--==> On Thu, 4 Sep 2008 21:53:37 +0200, "Raphaël Pinson" <raphink at gmail.com> said:
RP> On Thu, Sep 4, 2008 at 8:30 PM, David Lutterkort <lutter at redhat.com> wrote:
>>On Thu, 2008-09-04 at 12:44 +0200, Free Ekanayaka wrote:
>>> # HG changeset patch
>>> # User Free Ekanayaka <free at 64studio.com>
>>> # Date 1220525059 -7200
>>> # Node ID 6ce32e4097f9c1acb12387d066e2bb30e9d28c72
>>> # Parent 77cf07dd59dc3e62c02549f677bd422344ba4268
>>> Add lens and test for dnsmasq.conf
>>
>>ACK .. Committed, though over time I would hope that we decompose some
>>of the options in a more finegrained manner, e.g. turn
>>
>>server=/example.com/192.168.0.1
>>
>>into something like
>>
>>{ "server"
>>{ "domain" = "example.com" }
>>{ "address" = "192.168.0.1" } }
>>
>>or similar.
>>
RP> It might be useful to keep enriching util.aug (or other) with useful regexp
RP> and lenses. For example, at some point, a generic URI lens might be very
RP> useful, to map
RP> proto://user:password@host:port/some/path/
Yes, the number of patterns used by configuration files is actually
limited, and I guess much code could be shared.
Ciao,
Free
More information about the augeas-devel
mailing list