class HtmlLog def initialize FileUtils.mkdir("#{Environment.dev_root}/log") if !File.exists?("#{Environment.dev_root}/log") @file=File.open("#{Environment.dev_root}/log/rake.html",'w') @file.write '' @file.write '' @file.write '

' @file.write "rake" ARGV.each do|a| puts " #{a}" end @file.write '

' @file.write '

directory:' + File.dirname(__FILE__) + '

' @file.write '

time:' + Time.now.to_s + '

' @current_task=nil @task_commands=Hash.new end def finalize @file.write('' @file.write '' @file.write '' @file.close end def start_task task @current_task=task @task_commands[task]=Hash.new @task_commands[task][:command_results]=Array.new end def end_task task @current_task=nil #@file end def start_command command end def end_command command #@task_commands[@current_task][:command_results] << result end end