Sha256: e1a1b1f293e7d42a478c473924744ce92694b2091328b0350b73686baa4582ad
Contents?: true
Size: 579 Bytes
Versions: 4
Compression:
Stored size: 579 Bytes
Contents
require 'puppettest' module PuppetTest # NOTE: currently both of these will produce bogus results on Darwin due to the wonderful # UID of nobody. def nonrootuser Etc.passwd { |user| if user.uid != Puppet::Util::SUIDManager.uid and user.uid > 0 and user.uid < 255 return user end } end def nonrootgroup Etc.group { |group| if group.gid != Puppet::Util::SUIDManager.gid and group.gid > 0 and group.gid < 255 return group end } end end # $Id$
Version data entries
4 entries across 4 versions & 1 rubygems