On 28/12/09 17:05, Markus Roberts wrote:
> +1, with a comment/question:
>
>> options = [ "--fmt", "puppet",
>> "--quiet",
>> "--force-update",
>> + "--exclude", "/modules/[^/]*/files/.*\.pp$",
>> "--op", outputdir ]
>
> Does the exclude pattern expect a glom or a regex?
It is a regex.
> If a regex, you
> could (just FYI) write it as "/modules/.*?/files/.*\.pp$" ("*?" ==
> shortest match); if it's wanting a glom it should probably be
> "/modules/*/files/*.pp" instead.
You're correct. I'm usually using non-greedy operators, but I never can
remember if they're supported in Ruby (and did too much non-ruby work
lately to be really sure :-)).
--
Brice Figureau
My Blog: http://www.masterzen.fr/
--
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.