class Producer::Core::Recipe::FileEvaluator
Public Class Methods
evaluate(file_path, env)
click to toggle source
# File lib/producer/core/recipe/file_evaluator.rb, line 6 def evaluate file_path, env content = File.read(file_path) begin Recipe.new(env).tap { |o| o.instance_eval content, file_path } rescue ::StandardError, ::ScriptError => e raise RecipeEvaluationError, e.message, [ '%s (recipe)' % file_path, *e.backtrace ] end end