overwrite exec for inetd because respec its is executing exec

Signed-off-by: Christoph Hartmann <chris@lollyrock.com>
This commit is contained in:
Christoph Hartmann 2016-10-27 13:49:06 +02:00 committed by Alex Pop
parent edf95efbf1
commit a25d3e8fae

View file

@ -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