2010-08-27 20:08:27 +00:00
|
|
|
require 'rake'
|
|
|
|
module DbPopulate
|
|
|
|
DBP_ROOT = File.dirname(__FILE__)
|
|
|
|
end
|
|
|
|
|
|
|
|
# prevent the task from being loaded multiple times.
|
|
|
|
unless Rake::Task.task_defined? "db:populate"
|
|
|
|
# Load the rakefile so users of the gem get the tasks
|
2011-11-26 01:15:27 +00:00
|
|
|
load File.join(DbPopulate::DBP_ROOT, 'tasks', 'populate.rake')
|
2010-08-27 20:08:27 +00:00
|
|
|
end
|