Sha256: f7bc89de61409150f03c31e8797c8692e4768ec085eea03858c105f7bed13952
Contents?: true
Size: 468 Bytes
Versions: 54
Compression:
Stored size: 468 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| return user if user.uid != Puppet::Util::SUIDManager.uid and user.uid > 0 and user.uid < 255 } end def nonrootgroup Etc.group { |group| return group if group.gid != Puppet::Util::SUIDManager.gid and group.gid > 0 and group.gid < 255 } end end
Version data entries
54 entries across 54 versions & 3 rubygems