Method: Hummingbird::Plan#initialize

Defined in:
lib/hummingbird/plan.rb

#initialize(planfile, migration_dir) ⇒ Plan

Returns a new instance of Plan.

Parameters:

  • planfile (String)

    The path to the ‘.plan` file.

  • migration_dir (String)

    The path to the base directory for all of the migration files referenced in the ‘.plan` file.



24
25
26
27
# File 'lib/hummingbird/plan.rb', line 24

def initialize(planfile, migration_dir)
  @planned_files = parse_plan(planfile)
  @migration_dir = migration_dir
end