Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Oops, forgot to save the task dependency

  • Loading branch information...
commit 618fc6a1afbff9e282fd05a94fe31274b6ec4c59 1 parent 73faaac
Nathan Sutton authored January 22, 2009

Showing 1 changed file with 11 additions and 11 deletions. Show diff stats Hide diff stats

  1. 22  tasks/bootstrap.rake
22  tasks/bootstrap.rake
@@ -7,18 +7,18 @@ namespace :db do
7 7
 
8 8
   namespace :bootstrap do
9 9
     desc "Resets the database and bootstraps it for the given environment. BOOTSTRAP option lets you run a specific bootstrap task in the given environment."
10  
-    task :reset => 'db:migrate:reset' do
  10
+    task :reset => ['db:migrate:reset', 'reset_environment'] do
11 11
       Rake::Task['db:bootstrap'].invoke
12 12
     end
13  
-
14  
-    desc "Resets the rails environment"
15  
-    task :reset_environment do
16  
-      # Ripped directly out of railties/lib/console_app.rb in rails and
17  
-      # only changed slightly.
18  
-      puts "Reloading environment..."
19  
-      dispatcher = ActionController::Dispatcher.new($stdout)
20  
-      dispatcher.cleanup_application
21  
-      dispatcher.reload_application
22  
-    end
23 13
   end
24 14
 end
  15
+
  16
+desc "Resets the rails environment"
  17
+task :reset_environment do
  18
+  # Ripped directly out of railties/lib/console_app.rb in rails and
  19
+  # only changed slightly.
  20
+  puts "Reloading environment..."
  21
+  dispatcher = ActionController::Dispatcher.new($stdout)
  22
+  dispatcher.cleanup_application
  23
+  dispatcher.reload_application
  24
+end

0 notes on commit 618fc6a

Please sign in to comment.
Something went wrong with that request. Please try again.