Method: Puppet::Util::POSIX#idfield

Defined in:
lib/vendor/puppet/util/posix.rb

#idfield(space) ⇒ Object

Determine what the field name is for users and groups.



62
63
64
65
66
67
68
69
# File 'lib/vendor/puppet/util/posix.rb', line 62

def idfield(space)
  case space.intern
  when :gr, :group; return :gid
  when :pw, :user, :passwd; return :uid
  else
    raise ArgumentError.new("Can only handle users and groups")
  end
end