[augeas-devel] Two lenses in the same module

Free Ekanayaka free at 64studio.com
Mon Sep 8 09:43:45 UTC 2008


Hi,

I would like to write a postfix.aug module to parse

/etc/postfix/main.cf

and

/etc/postfix/master.cf

which have fairly different formats. Would it be possible to include
two different lenses in the module? Like:

let filter_main 
   = incl "/etc/postfix/main.cf"
   . Util.stdexcl

let filter_master
   = incl "/etc/postfix/master.cf"
   . Util.stdexcl

let xfm
    = transform lns_main filter_main
    . transform lns_master filter_master

Thanks,

Free




More information about the augeas-devel mailing list