db_populate/lib/db_populate.rb

11 lines
298 B
Ruby
Raw Normal View History

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')
end