|
Loading...
|
puppet-users@googlegroups.com
[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 though. -- 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 http://groups.google.com/group/puppet-users?hl=en.
- [Puppet Users] Problem with Custom Facter Matt Mencel 2012/02/20
- Re: [Puppet Users] Problem with Custom Facter Nathan Powell 2012/02/20
- Re: [Puppet Users] Problem with Custom Facter Nathan Powell 2012/02/20
- [Puppet Users] Re: Problem with Custom Facter jcbollinger 2012/02/21
- Re: [Puppet Users] Re: Problem with Custom Facter Nathan Powell 2012/02/21 <=
- Re: [Puppet Users] Re: Problem with Custom Facter Matt Mencel 2012/02/21
- [Puppet Users] Re: Problem with Custom Facter jcbollinger 2012/02/21
- Re: [Puppet Users] Re: Problem with Custom Facter Matt Mencel 2012/02/21
- Re: [Puppet Users] Re: Problem with Custom Facter Nan Liu 2012/02/21
- Re: [Puppet Users] Problem with Custom Facter Matt Mencel 2012/02/21