Permalink
Browse files

Bootstrapping once again

  • Loading branch information...
1 parent d3ebea0 commit 1c638f6d671978a24ee2869e1f62c7c714e500ce @qrush qrush committed May 30, 2009
Showing with 8 additions and 11 deletions.
  1. +8 −11 Rakefile
  2. 0 server/quick/Marshal.4.8/.gitignore
View
@@ -12,32 +12,29 @@ task :default => [:test, :features]
desc "Clean out files that aren't needed."
task :clean do
system("git clean -dfx server/; git checkout server/")
+ Rake::Task["db:reset"].execute
end
desc "Get the gem server up and running"
-task :bootstrap do
+task :bootstrap => :environment do
Rake::Task["clean"].execute
+ Rake::Task["index:create"].execute
ARGV[1] = "bench/old"
Rake::Task["import:process"].execute
- Rake::Task["index:create"].execute
ARGV[1] = "bench/new"
Rake::Task["import:process"].execute
- Rake::Task["index:update"].execute
end
namespace :index do
desc "Create the index"
- task :create do
- require 'app/cutter'
- require 'app/indexer'
- Gem::Cutter.indexer.generate_index
+ task :create => :environment do
+ Gemcutter.indexer.generate_index
end
desc "Update the index"
- task :update do
- require 'app/cutter'
- require 'app/indexer'
- Gem::Cutter.indexer.update_index
+ task :update => :environment do
+ require 'gemcutter'
+ Gemcutter.indexer.update_index
end
end
No changes.

0 comments on commit 1c638f6

Please sign in to comment.