lib/cicd/builder/manifest/mixlib/build.rb in manifest-builder-0.7.3 vs lib/cicd/builder/manifest/mixlib/build.rb in manifest-builder-0.7.4
- old
+ new
@@ -13,11 +13,11 @@
ret = super
if ret == 0
@vars[:artifacts] = []
yaml = YAML.load(IO.read(ENV['MANIFEST_FILE']))
keys = Hash[yaml.keys.map.with_index.to_a].keys.sort
- # @logger.info keys.ai
+ @logger.debug "Manifest keys: #{keys.ai}"
ordr = []
bads = []
apps = {}
vars = {}
@@ -38,15 +38,17 @@
rmap.each do |var,lst|
lst.each do |regexstr|
match = prod.match(%r'^(.*?)#{regexstr}$')
if match
name = match[1]
- vars[var] = yaml[prod]
+ vars[var] = yaml[prod].to_s
break
end
end
+ @logger.debug "Prod: #{prod}, Var: #{var}, Regex: #{lst.ai}, Vars: #{vars.ai}"
break if match
end
+ # @logger.debug "Vars: #{vars.ai}"
if match
ordr << name
unless apps[name]
apps[name] = { name: name, }
end