method
fu_get_gid
v1_9_3_125 -
Show latest stable
- Class:
FileUtils
fu_get_gid(group)public
No documentation available.
# File lib/fileutils.rb, line 1089
def fu_get_gid(group) #:nodoc:
return nil unless group
case group
when Integer
group
when /\A\d+\z/
group.to_i
else
Etc.getgrnam(group).gid
end
end