class Mixlib::ShellOut

def gid

given as a group name, it is converted to a gid by Etc.getgrnam
The gid that the subprocess will switch to. If the group attribute is
def gid
  return nil unless group
  group.kind_of?(Integer) ? group : Etc.getgrnam(group.to_s).gid
end