Permalink
Browse files

Don't require the environment just to clear the logs #2093 [Scott Bar…

…ron]

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2092 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent 8373b55 commit 49c67ea1b7411ea8c73fcba45fe15e76f8697282 @jamis jamis committed Sep 1, 2005
Showing with 3 additions and 1 deletion.
  1. +2 −0 railties/CHANGELOG
  2. +1 −1 railties/fresh_rakefile
View
@@ -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.
View
@@ -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

0 comments on commit 49c67ea

Please sign in to comment.