module Miniss::Etc
Overview
Rudimentary implementation of Ruby's Etc module.
The Etc module provides access to information typically stored in files in the
/etc
directory on Unix systems.
Only implements the methods required for miniss.
Defined in:
miniss/etc/etc.crClass Method Summary
-
.getpwuid(uid) : String
Returns the username with the given integer uid.
Class Method Detail
def self.getpwuid(uid) : String
#
Returns the username with the given integer uid.
Returns an empty string if the user is not found in /etc/passwd
.
NOTE Ruby's getpwuid().
Example:
Miniss::Etc.getpwuid(0) # => "root"