class Mixlib::ShellOut

def gid

TODO migrate to shellout/unix.rb
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 group.kind_of?(Integer) ? group : Etc.getgrnam(group.to_s).gid if group
  return Etc.getpwuid(uid).gid if using_login?
  return nil
end