Class: Inspec::Resources::XinetdConf
- Inherits:
-
Object
- Object
- Inspec::Resources::XinetdConf
show all
- Includes:
- XinetdParser
- Defined in:
- lib/resources/xinetd.rb
Instance Method Summary
collapse
#parse_xinetd, #xinetd_include_dir
Constructor Details
#initialize(conf_path = '/etc/xinetd.conf') ⇒ XinetdConf
24
25
26
27
|
# File 'lib/resources/xinetd.rb', line 24
def initialize(conf_path = '/etc/xinetd.conf')
@conf_path = conf_path
@contents = {}
end
|
Instance Method Details
#params ⇒ Object
33
34
35
|
# File 'lib/resources/xinetd.rb', line 33
def params
@params ||= read_params
end
|
#to_s ⇒ Object
29
30
31
|
# File 'lib/resources/xinetd.rb', line 29
def to_s
"Xinetd config #{@conf_path}#{@filters}"
end
|