module RhnSatellite::Common::Debug::ClassMethods
Public Instance Methods
debug(msg)
click to toggle source
# File lib/rhn_satellite/common/debug.rb, line 29 def debug(msg) output.puts msg if @debug_enabled end
debug_enabled()
click to toggle source
# File lib/rhn_satellite/common/debug.rb, line 13 def debug_enabled @debug_enabled ||= false end
debug_enabled=(enable)
click to toggle source
# File lib/rhn_satellite/common/debug.rb, line 17 def debug_enabled=(enable) @debug_enabled = enable end
output()
click to toggle source
# File lib/rhn_satellite/common/debug.rb, line 25 def output @output ||= STDOUT end
output=(output)
click to toggle source
# File lib/rhn_satellite/common/debug.rb, line 21 def output=(output) @output = output end