lib/hieracles/formats/console.rb in hieracles-0.4.1 vs lib/hieracles/formats/console.rb in hieracles-0.4.2
- old
+ new
@@ -78,19 +78,21 @@
output = "[-] (merged)\n"
@node.files(without_common).each_with_index do |f, i|
output << format("#{COLORS[i]}\n", "[#{i}] #{f}")
@colors[f] = i
end
+ output << "\n"
@node.params(without_common).each do |key, v|
if !filter || Regexp.new(filter).match(key)
filecolor_index = @colors[v[:file]]
if v[:overriden]
output << format(
"%s #{COLORS[7]} %s\n", "[-]",
key,
sanitize(v[:value])
)
v[:found_in].each do |val|
+ filecolor_index = @colors[val[:file]]
output << format(
" #{COLORS[8]}\n",
"[#{filecolor_index}] #{key} #{val[:value]}"
)
end