Skip to content

Instantly share code, notes, and snippets.

@lak
Created February 12, 2009 20:32
Show Gist options
  • Save lak/62853 to your computer and use it in GitHub Desktop.
Save lak/62853 to your computer and use it in GitHub Desktop.
#!/usr/bin/ruby
require 'puppet'
report = YAML.load_file("/var/puppet/reports/culain.madstop.com/200706241922.yaml")
report.metrics.each do |name, metric|
metric.values.each do |value_name, value_label, value|
puts "%s: %s => %s" % [name, value_label, value]
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment