README in sys-admin-1.5.6 vs README in sys-admin-1.6.0
- old
+ new
@@ -6,23 +6,13 @@
== Synopsis
require 'sys/admin'
include Sys
- # Yields a User object for each user
- Admin.users{ |user|
- p user
- }
-
# Returns an Array of User objects
a = Admin.users
- # Yields a Group object for each group
- Admin.groups{ |group|
- p group
- }
-
# Returns an Array of Group objects
g = Admin.groups
# Get information about a particular user
p Admin.get_user("nobody")
@@ -45,21 +35,17 @@
Returns a Group object based on +name+ or +uid+. The +options+ hash is
for MS Windows only, and allows you to restrict the search based on the
options you provide, e.g. 'domain' or 'localaccount'.
Admin.groups(options = {})
-Admin.groups(options = {}){ |group| ... }
- In block form, yields a Group object for each user on the system. In
- non-block form, returns an Array of Group objects.
+ Returns an Array of Group objects.
The +options+ hash is for MS Windows only, and allows you to restrict the
search based on the options you provide, e.g. 'domain' or 'localaccount'.
Admin.users(options = {})
-Admin.users(options = {}){ |user| ... }
- In block form, yields a User object for each user on the system. In
- non-block form, returns an Array of User objects.
+ Returns an Array of User objects.
The +options+ hash is for MS Windows only, and allows you to restrict the
search based on the options you provide, e.g. 'domain' or 'localaccount'.
== User class
@@ -147,10 +133,10 @@
== License
Artistic 2.0
== Copyright
- (C) 2005-2010, Daniel J. Berger
+ (C) 2005-2013, Daniel J. Berger
All Rights Reserved
== Author
Daniel J. Berger