blob: 32cbaeb35803e33915612e10c8f30481946b75ce (
plain) (
blame)
1
2
3
4
5
6
7
8
9
|
namespace :logs 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
|