Method: Inspec::Resources::FileResource#executable?

Defined in:
lib/resources/file.rb

#executable?(by_usergroup, by_specific_user) ⇒ Boolean

Returns:

  • (Boolean)


64
65
66
67
68
# File 'lib/resources/file.rb', line 64

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

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