42 43 44 45 46
# File 'lib/vendor/puppet/external/nagios.rb', line 42 def Config.each Nagios::Object.objects.each { |object| yield object } end
29 30 31 32 33 34 35 36 37 38 39 40
# File 'lib/vendor/puppet/external/nagios.rb', line 29 def Config.import(config) text = String.new File.open(config) { |file| file.each { |line| text += line } } parser = Nagios::Parser.new parser.parse(text) end