Class: PGMigrator

Inherits:
Object
  • Object
show all
Defined in:
lib/pg_migrator.rb

Overview

Load rake tasks

Instance Method Summary collapse

Constructor Details

#initializePGMigrator

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