instiki/vendor/rails/railties/lib/tasks/log.rake

10 lines
204 B
Ruby
Raw Permalink Normal View History

2007-01-22 14:43:50 +01:00
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