aboutsummaryrefslogblamecommitdiffstats
path: root/railties/lib/rails/tasks/log.rake
blob: 6e1334692ee2bdfbb65eaa26a84ebc359ccde790 (plain) (tree)
1
2
3
4
5
6
7
8
9
                 







                                                        
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