Sha256: 2c11f757be203edc711a1c069a7c70fe6eb9db1104de3b72c86ea00598306d3d
Contents?: true
Size: 621 Bytes
Versions: 2
Compression:
Stored size: 621 Bytes
Contents
require 'praegustator' require 'colorize' module Praegustator module Wrappers class OutputParser def parse node,json $stdout.puts "Node: #{node.ipaddress.colorize(:blue)} ChefQuery: #{node.query.colorize(:blue)}" $stdout.puts " Checks:" return if json[:examples].nil? json[:examples].each do |e| if e[:status] == 'passed' $stdout.puts " #{e[:full_description]} : #{e[:status]}".colorize(:green) else $stdout.puts " #{e[:full_description]} : #{e[:status]}".colorize(:red) end end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
praegustator-0.2.0 | lib/praegustator/wrappers/output_parser.rb |
praegustator-0.1.0 | lib/praegustator/wrappers/output_parser.rb |