On Thu, 2009-04-09 at 10:44 +1000, Karl Bowden wrote: > I've only been learning enough ruby for two days just to test the > augeas bindings, so mind the quality.
Kudos to you :) > Attached is a bindings demo that shows how the bindings handle quotes, > and the output is below: The ruby bindings just pass the strings they get from Ruby through to the C library - they never try to interpret anything they see in those strings, and the results of your tests clearly show that. > And the augeas binding although not nessecaraly wrong, differs from > how augtool handles the same example: Therein lies the rub - augtool reads a line from the terminal (or a file) and needs to split it into individual tokens, similar to how the augeas provider does it, except it's much cruftier. I intend to make augtool to behave identical to the augeas provider to minimize confusion around quoting and all that when you go back and forth between trying things out in augtool and putting them into pupet manifests. David --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---