Method: Inspec::Resources::FileResource#readable?

Defined in:
lib/resources/file.rb

#readable?(by_usergroup, by_specific_user) ⇒ Boolean

Returns:

  • (Boolean)


52
53
54
55
56
# File 'lib/resources/file.rb', line 52

def readable?(by_usergroup, by_specific_user)
  return false unless exist?

  file_permission_granted?('r', by_usergroup, by_specific_user)
end