lib/kameleon/utils.rb in kameleon-builder-2.7.5 vs lib/kameleon/utils.rb in kameleon-builder-2.7.6

- old
+ new

@@ -23,12 +23,10 @@ matches = raw.to_enum(:scan, reg).map { Regexp.last_match } matches.each do |m| unless m.nil? path = resolve_simple_vars(m[2], yaml_path, initial_variables, kwargs) resolved_path = recipe.resolve_data_path(path.chomp('"'), yaml_path) - #require 'pry' - #binding.pry raw.gsub!(m[0].chomp('"'), "#{resolved_path}") end end return raw end @@ -82,9 +80,10 @@ strip_var = var[2,(var.length - 2)] end # check in local vars if initial_variables.has_key? strip_var value = initial_variables[strip_var] + Kameleon.ui.debug("Resolved variable = #{strip_var}: #{value}") else if kwargs.fetch(:strict, true) fail RecipeError, "#{yaml_path}: variable #{var} not found in local or global" end end