summaryrefslogtreecommitdiffstats
path: root/lib/puppet/external/nagios.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/puppet/external/nagios.rb')
-rwxr-xr-xlib/puppet/external/nagios.rb64
1 files changed, 32 insertions, 32 deletions
diff --git a/lib/puppet/external/nagios.rb b/lib/puppet/external/nagios.rb
index 2dd040dba..6b8852ee5 100755
--- a/lib/puppet/external/nagios.rb
+++ b/lib/puppet/external/nagios.rb
@@ -12,39 +12,39 @@ require 'puppet/external/nagios/parser.rb'
require 'puppet/external/nagios/base.rb'
module Nagios
- NAGIOSVERSION = '1.1'
- # yay colors
- PINK = ""
- GREEN = ""
- YELLOW = ""
- SLATE = ""
- ORANGE = ""
- BLUE = ""
- NOCOLOR = ""
- RESET = ""
-
- def self.version
- NAGIOSVERSION
+ NAGIOSVERSION = '1.1'
+ # yay colors
+ PINK = ""
+ GREEN = ""
+ YELLOW = ""
+ SLATE = ""
+ ORANGE = ""
+ BLUE = ""
+ NOCOLOR = ""
+ RESET = ""
+
+ def self.version
+ NAGIOSVERSION
+ end
+
+ class Config
+ def Config.import(config)
+
+ text = String.new
+
+ File.open(config) { |file|
+ file.each { |line|
+ text += line
+ }
+ }
+ parser = Nagios::Parser.new
+ parser.parse(text)
end
- class Config
- def Config.import(config)
-
- text = String.new
-
- File.open(config) { |file|
- file.each { |line|
- text += line
- }
- }
- parser = Nagios::Parser.new
- parser.parse(text)
- end
-
- def Config.each
- Nagios::Object.objects.each { |object|
- yield object
- }
- end
+ def Config.each
+ Nagios::Object.objects.each { |object|
+ yield object
+ }
end
+ end
end