lib/htmllog.rb in dev_tasks-1.0.8 vs lib/htmllog.rb in dev_tasks-1.0.9
- old
+ new
@@ -1,8 +1,8 @@
class HtmlLog
def initialize
- FileUtils.mkdir('log') if !File.exists?('log')
- @file=File.open('log/rake.html','w')
+ 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 '<html>'
@file.write '<body>'
@file.write '<h1>'
@file.write "rake"
ARGV.each do|a|
\ No newline at end of file