Method: Inspec::Resources::UserInfo#user_details
- Defined in:
- lib/resources/users.rb
#user_details(username) ⇒ Object
retuns all aspects of the user as one hash
320 321 322 323 324 325 326 327 328 329 |
# File 'lib/resources/users.rb', line 320 def user_details(username) item = {} id = identity(username) item.merge!(id) unless id.nil? = (username) item.merge!() unless .nil? cred = credentials(username) item.merge!(cred) unless cred.nil? item end |