Method: ChkBuild::Build#make_html_log

Defined in:
lib/chkbuild/build.rb

#make_html_log(log_filename, title, has_diff, dst) ⇒ Object



422
423
424
425
426
427
428
429
# File 'lib/chkbuild/build.rb', line 422

def make_html_log(log_filename, title, has_diff, dst)
  log = File.read(log_filename)
  log.force_encoding("ascii-8bit") if log.respond_to? :force_encoding
  permalink = "log/#{@compressed_log_basename}"
  diff_permalink = "log/#{@compressed_diff_basename}"
  content = ERB.new(LAST_HTMLTemplate, nil, '%').result(binding)
  atomic_make_file(dst, content)
end