From 49c67ea1b7411ea8c73fcba45fe15e76f8697282 Mon Sep 17 00:00:00 2001 From: Jamis Buck Date: Thu, 1 Sep 2005 21:36:50 +0000 Subject: 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 --- railties/CHANGELOG | 2 ++ railties/fresh_rakefile | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'railties') diff --git a/railties/CHANGELOG b/railties/CHANGELOG index d22c7e32bf..16267cff66 100644 --- a/railties/CHANGELOG +++ b/railties/CHANGELOG @@ -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. diff --git a/railties/fresh_rakefile b/railties/fresh_rakefile index 4e557d53ac..6056508f5a 100755 --- a/railties/fresh_rakefile +++ b/railties/fresh_rakefile @@ -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 -- cgit v1.2.3