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 8 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 14 def initialize(scenario, answers) @scenario = scenario @answers = answers end
Public Instance Methods
logger()
click to toggle source
# File lib/kafo/migration_context.rb, line 19 def logger KafoConfigure.logger end