Method: Inspec::Resources::Shadow#user

Defined in:
lib/inspec/resources/shadow.rb

#user(query = nil) ⇒ Object

Next 4 are deprecated methods. We define them here so we can emit a deprecation message. They are also defined on the Table, above.



93
94
95
96
# File 'lib/inspec/resources/shadow.rb', line 93

def user(query = nil)
  Inspec.deprecate(:properties_shadow, "The shadow `user` property is deprecated. Please use `users` instead.")
  query.nil? ? where.users : where("user" => query)
end