Method: Inspec::Resources::Shadow#password

Defined in:
lib/resources/shadow.rb

#password(query = nil) ⇒ Object



99
100
101
102
103
# File 'lib/resources/shadow.rb', line 99

def password(query = nil)
  warn '[DEPRECATION] The shadow `password` property is deprecated and will be removed' \
   ' in InSpec 3.0.  Please use `passwords` instead.'
  query.nil? ? where.passwords : where('password' => query)
end