mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
9 lines
204 B
Ruby
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
|