Add Env class

This commit is contained in:
Thibault Jouan
2013-07-29 21:07:58 +00:00
parent 30e1930719
commit d199ba56fd
7 changed files with 50 additions and 11 deletions

View File

@@ -13,7 +13,9 @@ module Producer
def run!
print_usage_and_exit(64) unless @arguments.length == 2
Recipe.from_file(@arguments[1]).evaluate
recipe = Recipe.from_file(@arguments[1])
env = Env.new(recipe)
recipe.evaluate env
end