class Kafo::MigrationContext

Attributes

answers[RW]
scenario[RW]

Public Class Methods

execute(scenario, answers, &migration) click to toggle source
# File lib/kafo/migration_context.rb, line 6
def self.execute(scenario, answers, &migration)
  context = new(scenario, answers)
  context.instance_eval(&migration)
  return context.scenario, context.answers
end
new(scenario, answers) click to toggle source
# File lib/kafo/migration_context.rb, line 12
def initialize(scenario, answers)
  @scenario = scenario
  @answers = answers
end

Public Instance Methods

logger() click to toggle source
# File lib/kafo/migration_context.rb, line 17
def logger
  KafoConfigure.logger
end