[augeas-devel] Calling it from Ruby

David Lutterkort dlutter at redhat.com
Fri Feb 29 22:06:36 UTC 2008


On Fri, 2008-02-29 at 14:45 -0500, Bryan Kearney wrote:
> I am working on calling augeas from ruby, and would like to test it out 
> on some config stuff. How do I go about having augeas mutate the files 
> directly?

Right now, that behavior is hardcoded in augp_spec_save (in
prov_spec.c); best option would be to pass a flag to aug_save (and chain
that into augp_spec_save) to control that behavior. I can think of three
possibilities for the flag: save into .augnew; mutate; mutate and make
a .augsave backup.

David





More information about the augeas-devel mailing list