Parent Directory
|
Revision Log
add a function to get the members list of a unix group, idea from boklm
1 | require 'etc' |
2 | # group_members($group) |
3 | # -> return a array with the login of the group members |
4 | |
5 | module Puppet::Parser::Functions |
6 | newfunction(:group_members, :type => :rvalue) do |args| |
7 | group = args[0] |
8 | return Etc.getgrnam(group).mem |
9 | end |
10 | end |
ViewVC Help | |
Powered by ViewVC 1.1.30 |