# File lib/chef/shell_out.rb, line 133 def uid return nil unless user user.kind_of?(Integer) ? user : Etc.getpwnam(user.to_s).uid end