Class: PGMigrator
- Inherits:
-
Object
- Object
- PGMigrator
- Defined in:
- lib/pg_migrator.rb
Overview
Load rake tasks
Instance Method Summary collapse
-
#initialize ⇒ PGMigrator
constructor
A new instance of PGMigrator.
Constructor Details
#initialize ⇒ PGMigrator
Returns a new instance of PGMigrator.
5 6 7 8 9 10 11 |
# File 'lib/pg_migrator.rb', line 5 def initialize $LOAD_PATH.each do |p| Dir["#{p}/*"].each do |d| load d if %r{pg_migrator.*/tasks/.*\.rake$}.match(d) end end end |