diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-09-03 15:13:06 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-09-03 15:13:06 +0000 |
commit | bc011df210e9cb56e1c4f2cc61dce002861201ef (patch) | |
tree | 085b6cf1de972663c84233e9296ccb1d780a97f1 /railties/lib/tasks/misc.rake | |
parent | 9bbb195c038e2c4967daaed5efb192ce51e58103 (diff) | |
download | rails-bc011df210e9cb56e1c4f2cc61dce002861201ef.tar.gz rails-bc011df210e9cb56e1c4f2cc61dce002861201ef.tar.bz2 rails-bc011df210e9cb56e1c4f2cc61dce002861201ef.zip |
Moved all the shared tasks from Rakefile into Rails, so that the Rakefile is empty and doesn't require updating. Added Rails::Initializer and Rails::Configuration to abstract all of the common setup out of config/environment.rb (uses config/boot.rb to bootstrap the initializer and paths)
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2115 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'railties/lib/tasks/misc.rake')
-rw-r--r-- | railties/lib/tasks/misc.rake | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/railties/lib/tasks/misc.rake b/railties/lib/tasks/misc.rake new file mode 100644 index 0000000000..713f622547 --- /dev/null +++ b/railties/lib/tasks/misc.rake @@ -0,0 +1,15 @@ +desc "Run all the tests on a fresh test database" +task :default => [ :test_units, :test_functional ] + +task :environment do + require(File.join(RAILS_ROOT, 'config', 'environment')) +end + + +desc "Clears all *.log files in log/" +task :clear_logs do + FileList["log/*.log"].each do |log_file| + f = File.open(log_file, "w") + f.close + end +end |