Skip to content

Commit

Permalink
overwrite exec for inetd because respec its is executing exec
Browse files Browse the repository at this point in the history
Signed-off-by: Christoph Hartmann <chris@lollyrock.com>
  • Loading branch information
chris-rock authored and alexpop committed Oct 28, 2016
1 parent edf95ef commit a25d3e8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/resources/inetd_conf.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ def initialize(path = nil)
@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
Expand Down

0 comments on commit a25d3e8

Please sign in to comment.