Don't require the environment just to clear the logs #2093 [Scott Barron]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2092 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
parent
8373b55055
commit
49c67ea1b7
@ -1,5 +1,7 @@
|
||||
*SVN*
|
||||
|
||||
* Don't require the environment just to clear the logs #2093 [Scott Barron]
|
||||
|
||||
* Make the default rakefile read *.rake files from config/tasks (for easy extension of the rakefile by e.g. generators)
|
||||
|
||||
* Only load breakpoint in development mode and when BREAKPOINT_SERVER_PORT is defined.
|
||||
|
@ -199,7 +199,7 @@ task :purge_test_database => :environment do
|
||||
end
|
||||
|
||||
desc "Clears all *.log files in log/"
|
||||
task :clear_logs => :environment do
|
||||
task :clear_logs do
|
||||
FileList["log/*.log"].each do |log_file|
|
||||
f = File.open(log_file, "w")
|
||||
f.close
|
||||
|
Loading…
Reference in New Issue
Block a user