[Prev] Thread [Next]  |  [Prev] Date [Next]

Re: [Puppet Users] Re: Problem with Custom Facter Nathan Powell Tue Feb 21 08:00:22 2012

On Tue, Feb 21, 2012 at 9:57 AM, jcbollinger <[EMAIL PROTECTED]> wrote:
> Alternatively,
> `yum -q check-update | grep '\\w' | wc --lines`.chomp

Yep, lots of ways to do it.

> sudo is not needed to run yum queries, and avoiding sudo when you
> don't need it is good practice.  Personally, I find that command a lot

Good point.  I was testing in irb as a regular user and just cut and
paste what I did into the email.  It shouldn't have sudo in there.

> more legible than the Ruby split / reject / length business, too,
> though YMMV.

I think method chaining and the functional aspects (reject) of Ruby
are elegant and use them every chance I get.  Both are fine and valid

Nathan Powell
Linux System Administrator

"Where else would you rather be than right here, right now?"
~ Marv Levy

You received this message because you are subscribed to the Google Groups 
"Puppet Users" 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