diff options
author | Ian Taylor <ian@lorf.org> | 2009-02-17 19:22:54 -0500 |
---|---|---|
committer | James Turnbull <james@lovedthanlost.net> | 2009-02-28 09:35:20 +1100 |
commit | b6f0f9949be9056ea8823b10b86a2b9ea848fad7 (patch) | |
tree | 82d396fdaf87423c06dab8f8f9344ad4a80af881 /lib/facter.rb | |
parent | 9bc174faffcdb412e07e2dde1686cdec9a4d638c (diff) | |
download | facter-b6f0f9949be9056ea8823b10b86a2b9ea848fad7.tar.gz facter-b6f0f9949be9056ea8823b10b86a2b9ea848fad7.tar.xz facter-b6f0f9949be9056ea8823b10b86a2b9ea848fad7.zip |
more consistent indentation and alignment. also removal of trailing whitespace
Diffstat (limited to 'lib/facter.rb')
-rw-r--r-- | lib/facter.rb | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/lib/facter.rb b/lib/facter.rb index c73f714..b395372 100644 --- a/lib/facter.rb +++ b/lib/facter.rb @@ -28,13 +28,13 @@ module Facter include Enumerable FACTERVERSION = '1.5.4' - # = Facter + # = Facter # Functions as a hash of 'facts' you might care about about your # system, such as mac address, IP address, Video card, etc. # returns them dynamically - # == Synopsis - # + # == Synopsis + # # Generally, treat <tt>Facter</tt> as a hash: # == Example # require 'facter' @@ -49,7 +49,7 @@ module Facter RESET = "[0m" @@debug = 0 - # module methods + # module methods def self.collection unless defined?(@collection) and @collection @@ -147,9 +147,9 @@ module Facter Facter.reset end - # Set debugging on or off. - def self.debugging(bit) - if bit + # Set debugging on or off. + def self.debugging(bit) + if bit case bit when TrueClass; @@debug = 1 when FalseClass; @@debug = 0 @@ -168,10 +168,10 @@ module Facter else @@debug = 0 end - else - @@debug = 0 - end - end + else + @@debug = 0 + end + end # Remove them all. def self.reset |