Skip to content

Commit

Permalink
fix rake gems:install task
Browse files Browse the repository at this point in the history
  • Loading branch information
zapnap committed Apr 2, 2009
1 parent c7e2666 commit d132657
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Rakefile
@@ -1,4 +1,3 @@
require 'environment'
require 'spec/rake/spectask'

task :default => :test
Expand All @@ -16,12 +15,12 @@ end

namespace :db do
desc 'Auto-migrate the database (destroys data)'
task :migrate do
task :migrate => :environment do
DataMapper.auto_migrate!
end

desc 'Auto-upgrade the database (preserves data)'
task :upgrade do
task :upgrade => :environment do
DataMapper.auto_upgrade!
end
end
Expand All @@ -34,3 +33,7 @@ namespace :gems do
required_gems.each { |required_gem| system "sudo gem install #{required_gem}" }
end
end

task :environment do
require 'environment'
end

0 comments on commit d132657

Please sign in to comment.