lib/yamllog.rb in dev_tasks-1.0.8 vs lib/yamllog.rb in dev_tasks-1.0.9
- old
+ new
@@ -8,11 +8,11 @@
name='DEV'
ARGV.each do|a|
name="#{name}.#{a}"
end
name="#{name}.yml"
- FileUtils.mkdir('log') if !File.exists?('log')
- File.open("log/#{name}","w") do |f|
+ FileUtils.mkdir("#{Environment.dev_root}/log") if !File.exists?("#{Environment.dev_root}/log")
+ File.open("#{Environment.dev_root}/log/#{name}","w") do |f|
f.write(DEV.to_yaml)
end
end
end
\ No newline at end of file