Method: Inspec::Resources::UnixUser#list_users

Defined in:
lib/resources/users.rb

#list_usersObject

returns a list of all local users on a system



350
351
352
353
354
# File 'lib/resources/users.rb', line 350

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