Class: Inspec::Resources::Directory
- Inherits:
-
FileResource
- Object
- FileResource
- Inspec::Resources::Directory
- Defined in:
- lib/resources/directory.rb
Instance Attribute Summary
Attributes inherited from FileResource
Instance Method Summary collapse
Methods inherited from FileResource
#allowed?, #contain, #content, #executable?, #initialize, #mounted?, #readable?, #sgid, #sticky, #suid, #writable?
Methods included from LinuxMountParser
#includes_whitespaces?, #parse_mount_options
Methods included from FilePermissionsSelector
Constructor Details
This class inherits a constructor from Inspec::Resources::FileResource
Instance Method Details
#exist? ⇒ Boolean
17 18 19 |
# File 'lib/resources/directory.rb', line 17 def exist? file.exist? && file.directory? end |
#to_s ⇒ Object
21 22 23 |
# File 'lib/resources/directory.rb', line 21 def to_s "Directory #{source_path}" end |