2013-12-20 11:24:30 +00:00

19 lines
339 B
Ruby

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