Object
The Log class provides a common and easy to use means for different services to log there activity.
# File lib/syckle/log.rb, line 34 def append(str) mkdir_p(File.dirname(file)) #unless File.file?(file) File.open(file, 'a'){ |f| f << str } end
# File lib/syckle/log.rb, line 40 def clear File.open(file, 'w'){ |f| f << '' } if File.file?(file) end
# File lib/syckle/log.rb, line 22 def method_missing(s, *a, &b) @domain.send(s, *a, &b) end
# File lib/syckle/log.rb, line 45 def outofdate?(*sources) FileUtils.outofdate?(file.to_s, sources.flatten) end
# File lib/syckle/log.rb, line 50 def uptodate?(*sources) FileUtils.uptodate?(file.to_s, sources.flatten) end
Write to log file.
# File lib/syckle/log.rb, line 27 def write(str) mkdir_p(File.dirname(file)) #unless File.file?(file) File.open(file, 'w'){ |f| f << str } end
Generated with the Darkfish Rdoc Generator 2.