module Producer module Core class Recipe class << self def evaluate_from_file(filepath, env) dsl = DSL.new(File.read(filepath)).evaluate(env) Recipe.new(dsl.tasks) end end attr_accessor :tasks def initialize(tasks = []) @tasks = tasks end end end end