Method: Inspec::Resources::UnixUser#list_users

Defined in:
lib/resources/users.rb

#list_usersObject

returns a list of all local users on a system



352
353
354
355
356
# File 'lib/resources/users.rb', line 352

def list_users
  cmd = inspec.command(list_users_cmd)
  return [] if cmd.exit_status != 0
  cmd.stdout.chomp.lines
end