Class: Inspec::Resources::AuditDaemonConf
- Inherits:
-
Object
- Object
- Inspec::Resources::AuditDaemonConf
show all
- Includes:
- FileReader
- Defined in:
- lib/resources/auditd_conf.rb
Instance Method Summary
collapse
Methods included from FileReader
#read_file_content
Constructor Details
20
21
22
23
|
# File 'lib/resources/auditd_conf.rb', line 20
def initialize(path = nil)
@conf_path = path || '/etc/audit/auditd.conf'
@content = read_file_content(@conf_path)
end
|
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(name) ⇒ Object
25
26
27
|
# File 'lib/resources/auditd_conf.rb', line 25
def method_missing(name)
read_params[name.to_s]
end
|
Instance Method Details
#to_s ⇒ Object
29
30
31
|
# File 'lib/resources/auditd_conf.rb', line 29
def to_s
'Audit Daemon Config'
end
|