Hello,

What is the best way to evaluate the variables set in a config file in
a provider? The variables in the file are setup like MY_VAR="foo bar
baz".

I currently have this little piece of code working but it's certainly
not very elegant so I'm looking for some guidance.

IO.read(/some/file.cfg).grep(/^MY_VAR=/).grep(/\bbar\b/).empty?

--
Later,
Darin

-- 
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.

Reply via email to