mirror of
https://github.com/inspec/inspec
synced 2024-11-23 13:13:22 +00:00
overwrite exec for inetd because respec its is executing exec
Signed-off-by: Christoph Hartmann <chris@lollyrock.com>
This commit is contained in:
parent
edf95efbf1
commit
a25d3e8fae
1 changed files with 6 additions and 0 deletions
|
@ -22,6 +22,12 @@ module Inspec::Resources
|
|||
@conf_path = path || '/etc/inetd.conf'
|
||||
end
|
||||
|
||||
# overwrite exec to ensure it works with its
|
||||
# TODO: this needs to be fixed in RSpec
|
||||
def exec
|
||||
read_params['exec']
|
||||
end
|
||||
|
||||
def method_missing(name)
|
||||
read_params[name.to_s]
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue