Merge pull request #1257 from chef/chris-rock/inetd-exec

overwrite exec for inetd because respec its is executing `exec`
This commit is contained in:
Alex Pop 2016-10-28 12:19:28 +03:00 committed by GitHub
commit 9f7216ce26

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