db_populate/lib/db_populate.rb
2011-11-25 20:15:27 -05:00

11 lines
298 B
Ruby

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
load File.join(DbPopulate::DBP_ROOT, 'tasks', 'populate.rake')
end