Method: Puppetfactory::Plugins::Example#users

Defined in:
lib/puppetfactory/plugins/example.rb

#usersObject

returns an array of all user accounts. Only one can be active at any time.



83
84
85
86
# File 'lib/puppetfactory/plugins/example.rb', line 83

def users
  usernames = Dir.glob('/home/*').map { |path| File.basename path }
  usernames.reject { |username| ['centos', 'training', 'showoff'].include? username }
end