Specifying a task for the db_scrub file
Closed this issue · 2 comments
Is it possible to add as a feature the ability to specify a rake task for the database setup. I tried your idea on the main page, but if I remove specjour from my Gemfile then I don't get the 'rake specjour' task as I can't require them in the Rakefile.
I'm just wondering if you could elaborate on having a non-standard database setup task?
I suppose the quick and dirty solution would be to require 'rubygems' within your Rakefile so you can continue loading the specjour tasks. I'm slowly working towards removing the rake tasks entirely so this dirty solution shouldn't be long lived.
Oh, I just re-read your issue. Don't remove specjour from your Gemfile, just use :require => false or the equivalent if you're using config.gem.
Something like:
group :test do
gem 'specjour', :require => false
end
or
config.gem 'specjour', :lib => false
The intention is to continue using bundler to add specjour to your $LOAD_PATH but not require specjour's init.rb which loads the db setup plugin.
Ah, cheers. I could've sworn I tried that already. Maybe I got confused with the bundler groupings.
Works like a charm :) Thanks again for a sweet piece of kit.