2014-01-08 22:13:14 +00:00

19 lines
339 B
Ruby

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