lib/logger.rb in dev_tasks-1.0.37 vs lib/logger.rb in dev_tasks-1.0.38

- old
+ new

@@ -1,37 +1,37 @@ -require_relative './htmllog.rb' -require_relative './jsonlog.rb' -require_relative './yamllog.rb' - -class Logger - @@timers=Hash.new - @@html_log=HtmlLog.new - @@json_log=JsonLog.new - @@yaml_log=YamlLog.new - def self.start_task task - @@timers[task]=Timer.new - Console.announce_task_start task - @@html_log.start_task task - end - - def self.end_task task - elapsed=@@timers[task].elapsed - @@html_log.end_task task - end - - def self.finalize - @@html_log.finalize - @@json_log.finalize - @@yaml_log.finalize - end - - def self.start_command command - Console.start_command command - // - @@html_log.start_command command - end - - def self.end_command command - Console.end_command command - @@html_log.end_command command - end +require_relative './htmllog.rb' +require_relative './jsonlog.rb' +require_relative './yamllog.rb' + +class Logger + @@timers=Hash.new + @@html_log=HtmlLog.new + @@json_log=JsonLog.new + @@yaml_log=YamlLog.new + def self.start_task task + @@timers[task]=Timer.new + Console.announce_task_start task + @@html_log.start_task task + end + + def self.end_task task + elapsed=@@timers[task].elapsed + @@html_log.end_task task + end + + def self.finalize + @@html_log.finalize + @@json_log.finalize + @@yaml_log.finalize + end + + def self.start_command command + Console.start_command command + // + @@html_log.start_command command + end + + def self.end_command command + Console.end_command command + @@html_log.end_command command + end end \ No newline at end of file