Remove Recipe::DSL.evaluate method

This commit is contained in:
Thibault Jouan
2013-12-20 11:24:30 +00:00
parent d83b11d07b
commit 366c682152
4 changed files with 23 additions and 43 deletions
+2 -1
View File
@@ -3,7 +3,8 @@ module Producer
class Recipe
class << self
def evaluate_from_file(filepath, env)
DSL.evaluate(File.read(filepath), env)
dsl = DSL.new(File.read(filepath)).evaluate(env)
Recipe.new(dsl.tasks)
end
end