Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
ruby / usr / share / ri / 2.2.0 / system / Etc / cdesc-Etc.ri
Size: Mime:
U:RDoc::NormalModule[iI"Etc:ET@0o:RDoc::Markup::Document:@parts[o;;[o:RDoc::Markup::Paragraph;[I"GThe Etc module provides access to information typically stored in ;TI"1files in the /etc directory on Unix systems.;To:RDoc::Markup::BlankLineo;	;[I"IThe information accessible consists of the information found in the ;TI"K/etc/passwd and /etc/group files, plus information about the system's ;TI"Ctemporary directory (/tmp) and configuration directory (/etc).;T@o;	;[I"MThe Etc module provides a more reliable way to access information about ;TI"Cthe logged in user than environment variables such as +$USER+.;T@S:RDoc::Markup::Heading:
leveli:	textI"
Example:;T@o:RDoc::Markup::Verbatim;[I"require 'etc'
;TI"
;TI"login = Etc.getlogin
;TI" info = Etc.getpwnam(login)
;TI",username = info.gecos.split(/,/).first
;TI"Aputs "Hello #{username}, I see your login name is #{login}"
;T:@format0o;	;[I"JNote that the methods provided by this module are not always secure. ;TI"HIt should be used for informational purposes, and not for security.;T@o;	;[I"NAll operations defined in this module are class methods, so that you can ;TI",include the Etc module into your class.;T:
@fileI"ext/etc/etc.c;T:0@omit_headings_from_table_of_contents_below0;0;0[[U:RDoc::Constant[iI"Passwd;TI"Etc::Passwd;T00o;;[
o;	;[I"Passwd;F@o;	;[I"<Passwd is a Struct that contains the following members:;F@o:RDoc::Markup::List:
@type:	NOTE:@items[o:RDoc::Markup::ListItem:@label[I"	name;F;[o;	;[I";contains the short login name of the user as a String.;Fo;;[I"passwd;F;[o;	;[I">contains the encrypted password of the user as a String. ;FI"Kan 'x' is returned if shadow passwords are in use. An '*' is returned ;FI"0if the user cannot log in using a password.;Fo;;[I"uid;F;[o;	;[I"4contains the integer user ID (uid) of the user.;Fo;;[I"gid;F;[o;	;[I"Econtains the integer group ID (gid) of the user's primary group.;Fo;;[I"dir;F;[o;	;[I"Econtains the path to the home directory of the user as a String.;Fo;;[I"
shell;F;[o;	;[I"Bcontains the path to the login shell of the user as a String.;F@S;;i;
I"WThe following members below are optional, and must be compiled with special flags:;F@o;;;;[o;;[I"
gecos;F;[o;	;[	I"?contains a longer String description of the user, such as ;FI"Ja full name. Some Unix systems provide structured information in the ;FI"0gecos field, but this is system-dependent. ;FI"8must be compiled with +HAVE_STRUCT_PASSWD_PW_GECOS+;Fo;;[I"change;F;[o;	;[I"Wpassword change time(integer) must be compiled with +HAVE_STRUCT_PASSWD_PW_CHANGE+;Fo;;[I"
quota;F;[o;	;[I"Mquota value(integer) must be compiled with +HAVE_STRUCT_PASSWD_PW_QUOTA+;Fo;;[I"age;F;[o;	;[I"Lpassword age(integer) must be compiled with +HAVE_STRUCT_PASSWD_PW_AGE+;Fo;;[I"
class;F;[o;	;[I"Ruser access class(string) must be compiled with +HAVE_STRUCT_PASSWD_PW_CLASS+;Fo;;[I"comment;F;[o;	;[I"Jcomment(string) must be compiled with +HAVE_STRUCT_PASSWD_PW_COMMENT+;Fo;;[I"expire;F;[o;	;[I"Zaccount expiration time(integer) must be compiled with +HAVE_STRUCT_PASSWD_PW_EXPIRE+;F;@,;0@,@cRDoc::NormalModule0U;[iI"
Group;TI"Etc::Group;T00o;;[o;	;[I"
Group;F@o;	;[I"QGroup is a Struct that is only available when compiled with +HAVE_GETGRENT+.;F@o;	;[I"/The struct contains the following members:;F@o;;;;[	o;;[I"	name;F;[o;	;[I"0contains the name of the group as a String.;Fo;;[I"passwd;F;[o;	;[	I"<contains the encrypted password as a String. An 'x' is ;FI"Ireturned if password access to the group is not available; an empty ;FI"Istring is returned if no password is needed to obtain membership of ;FI"the group.;F@o;	;[I"9Must be compiled with +HAVE_STRUCT_GROUP_GR_PASSWD+.;Fo;;[I"gid;F;[o;	;[I"3contains the group's numeric ID as an integer.;Fo;;[I"mem;F;[o;	;[I"Dis an Array of Strings containing the short login names of the ;FI"members of the group.;F;@,;0@,@@œ0[[[I"
class;T[[:public[[I"confstr;TI"ext/etc/etc.c;T[I"
endgrent;T@Ú[I"
endpwent;T@Ú[I"
getgrent;T@Ú[I"
getgrgid;T@Ú[I"
getgrnam;T@Ú[I"
getlogin;T@Ú[I"
getpwent;T@Ú[I"
getpwnam;T@Ú[I"
getpwuid;T@Ú[I"
group;T@Ú[I"nprocessors;T@Ú[I"passwd;T@Ú[I"
setgrent;T@Ú[I"
setpwent;T@Ú[I"sysconf;T@Ú[I"sysconfdir;T@Ú[I"systmpdir;T@Ú[I"
uname;T@Ú[:protected[[:private[[I"
instance;T[[;[[;[[;[[[U:RDoc::Context::Section[i0o;;[;0;0[@,I"+lib/webrick/httpservlet/filehandler.rb;T@,cRDoc::TopLevel