lib/puppet/provider/service/runit.rb in puppet-0.25.1 vs lib/puppet/provider/service/runit.rb in puppet-0.25.2

- old
+ new

@@ -36,10 +36,10 @@ commands :sv => "/usr/bin/sv" class << self # this is necessary to autodetect a valid resource # default path, since there is no standard for such directory. - def defpath + def defpath(dummy_argument=:work_arround_for_ruby_GC_bug) unless defined?(@defpath) and @defpath ["/etc/sv", "/var/lib/service"].each do |path| if FileTest.exist?(path) @defpath = path break