--
You received this message because you are subscribed to the Google Groups "Puppet Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-dev+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-dev/28235664-253f-42b1-bdc6-e7f65015d8e9%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
This resembles my feeling quite accurately. I've butted heads with
parsedfile quite a bit as well, and it can make you sad.
Can you elaborate on the possible compatibility concerns? I don't have a
clear idea in what way those could limit re-implementations.
On Wed, Feb 5, 2014 at 2:20 PM, Felix Frank <Felix...@alumni.tu-berlin.de> wrote:This resembles my feeling quite accurately. I've butted heads with
parsedfile quite a bit as well, and it can make you sad.
Can you elaborate on the possible compatibility concerns? I don't have a
clear idea in what way those could limit re-implementations.I'd like to but I actually don't know yet, I haven't dug into the providers using it to see exactly what is considered the "public API". My concern was too many providers are going to override a lot of the internal functionality making it tricky to refactor to a significant deal, but that was just a worry, not actually confirmed by reality. This is just me playing around with the code and trying to get a feel for how it works in my mind and what scope we have to rework it without breaking things.
I suppose this brings up a good question - does anyone reading have a custom provider based on ParsedFile that they don't have anywhere public? I'm trying to find a list of things outside of core relying on it so I can see how they are using it, and so far I only really know of inifile.
--
You received this message because you are subscribed to the Google Groups "Puppet Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-dev+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-dev/c386ea90-6628-4627-8950-26060bc9eedf%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
3) Yeah, I definitely know that it depends on the lens. Unfortunately, I've just had too many issues over time with lenses missing various features *or* being too loose.2) Good to hear!Hi Raphaël,1) I'm a fan of the first bullet. Just having everything run through flush would be a huge bonus.
4) Unfortunately, I'm referring both to mapping the properties and to the Augueas language itself. The learning curve is high on creating new custom types and the learning curve is even higher an creating new Augeas lenses. Each time I've wanted to create an Augeas lens I ended up frustrated with the error handling and ease of testing and just wrote it in Ruby because it was faster. I 100% love the idea, I just find it frustrating in reality.
I started working on the flush part. I have a dev branch (which doesn't pass all tests just now) at https://github.com/raphink/augeasproviders/tree/dev/aug_one_handlerFeel free to test it and let me know if that improves your situation with the number of files opened by Augeasproviders.
3) Yeah, I definitely know that it depends on the lens. Unfortunately, I've just had too many issues over time with lenses missing various features *or* being too loose.
As far as I'm concerned, I consider Augeas to be a parser before anything else. So I care that my lenses parse as much as possible, and produce valid files. Nowadays, I'd only make lenses strict if there is a need to strictly identify parameters and their entry types.
4) Unfortunately, I'm referring both to mapping the properties and to the Augueas language itself. The learning curve is high on creating new custom types and the learning curve is even higher an creating new Augeas lenses. Each time I've wanted to create an Augeas lens I ended up frustrated with the error handling and ease of testing and just wrote it in Ruby because it was faster. I 100% love the idea, I just find it frustrating in reality.
I understand your frustration. Augeas comes with many lenses already, so most Augeas providers won't need a new lens. On the positive side, I'm planning on organizing a full-fledge Augeas course around Puppetconf (4 days, including Augeas basics, writing facts, functions and providers with the Augeas ruby lib, as well as writing new lenses).
I started working on the flush part. I have a dev branch (which doesn't pass all tests just now) at https://github.com/raphink/augeasproviders/tree/dev/aug_one_handlerFeel free to test it and let me know if that improves your situation with the number of files opened by Augeasproviders.Awesome, I'll have to check it out!
--
You received this message because you are subscribed to the Google Groups "Puppet Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-dev+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-dev/369f40d8-ba4d-4998-a61d-2055505081f0%40googlegroups.com.