Method: Puppet::Etc.getpwent

Defined in:
lib/puppet/etc.rb

.getpwentObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Etc::getpwent returns an Etc::Passwd struct object On first call opens /etc/passwd and returns parse of first entry. Each subsquent call returns new struct for the next entry or nil if EOF. Call ::endgrent to close file.



63
64
65
# File 'lib/puppet/etc.rb', line 63

def getpwent
  override_field_values_to_utf8(::Etc.getpwent)
end