class Mixlib::ShellOut

def uid

TODO migrate to shellout/unix.rb
given as a username, it is converted to a uid by Etc.getpwnam
The uid that the subprocess will switch to. If the user attribute was
def uid
  return nil unless user
  user.is_a?(Integer) ? user : Etc.getpwnam(user.to_s).uid
end