Sha256: 1a9a1476073ff8858385beaf454ace1c25154f4017c09f9a7915db7d38330e19

Contents?: true

Size: 299 Bytes

Versions: 5

Compression:

Stored size: 299 Bytes

Contents


#
# Author: Waldemar Hummer (hummer@dsg.tuwien.ac.at)
#

provides "users"
users Mash.new

# build list of users
out = `awk -F":" '{ print $1 " : " $3 }' /etc/passwd`
out.split("\n").each do |line|
  parts = line.split(" : ")
  name = parts[0]
  uid = parts[1]
  users[name] = { "uid" => uid }
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
cloud-toaster-1.1.6 lib/toaster/ohai/users/users.rb
cloud-toaster-1.1.5 lib/toaster/ohai/users/users.rb
cloud-toaster-1.1.4 lib/toaster/ohai/users/users.rb
cloud-toaster-1.1.3 lib/toaster/ohai/users/users.rb
cloud-toaster-1.1.2 lib/toaster/ohai/users/users.rb