instiki/vendor/rails/railties/lib/tasks/log.rake
2007-01-22 07:43:50 -06:00

9 lines
204 B
Ruby

namespace :log do
desc "Truncates all *.log files in log/ to zero bytes"
task :clear do
FileList["log/*.log"].each do |log_file|
f = File.open(log_file, "w")
f.close
end
end
end