提交 49c67ea1 编写于 作者: J Jamis Buck

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
上级 8373b550
*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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册