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.cr

Class Method Summary

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"