[augeas-devel] nginx lense

Ian Berry iberry at barracuda.com
Thu Jul 5 15:05:32 UTC 2012


I have been working on a lense to parse nginx configs (attached). It is modeled from the dhclient lense and can parse basic blocks/statements.

The main issue that I'm having is getting it to parse comments correctly within block statements. It could also use some more work parsing more advanced location blocks which are often nested and contain a wide array of characters.

I attached the lense and associated test. I'm struggling with some of these issues so I'd be great if someone was interested in improving it.

Ian

'Like' us on Facebook for exclusive content and other resources on all Barracuda Networks solutions.
Visit http://barracudanetworks.com/facebook


-------------- next part --------------
A non-text attachment was scrubbed...
Name: nginx.aug
Type: application/octet-stream
Size: 7268 bytes
Desc: nginx.aug
URL: <http://listman.redhat.com/archives/augeas-devel/attachments/20120705/ca449f0d/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test_nginx.aug
Type: application/octet-stream
Size: 2894 bytes
Desc: test_nginx.aug
URL: <http://listman.redhat.com/archives/augeas-devel/attachments/20120705/ca449f0d/attachment-0001.obj>


More information about the augeas-devel mailing list