On Wed, 2009-10-07 at 12:57 +1100, sam abed wrote: > On Wed, Oct 7, 2009 at 5:40 AM, David Lutterkort <[email protected]> wrote: > > > > These parameters allow loading a file anywhere on the filesystem; using > > them also greatly speeds up processing the resource. > > > > * lib/puppet/type/augeas.rb: add 'incl' and 'lens' parameters; change > > default for 'context' when 'incl' is given. > > * lib/puppet/provider/augeas/augeas.rb: when 'lens' and 'incl' are given, > > only load that file > > * spec/unit/type/augeas.rb: check that constraints on new parameters are > > enforced > > > some bikeshedding, "incl" kind of implies in addition to the default, > is that how it would work?, as in would I be able to use the > rsyncd.aug lens but 'incl' another file and have it operate only on > that file.
The name for the 'incl' parameter comes from what Augeas calls them (you can do similar things through the Augeas API or augtool by setting up nodes /augeas/load/SomeName/lens and /augeas/load/SomeName/incl) - I wanted to keep that name (a) for consistency and (b) since I wouldn't be surprised to get a feature request in the future to make 'incl' take a list of globs, which will likely require adding a similar 'excl' parameter - that's all supported by Augeas already, I just wanted to keep things simple until somebody needs the more involved functionality of including/excluding files. David --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/puppet-dev?hl=en -~----------~----~----~----~------~----~------~--~---
