update with some facts

This commit is contained in:
Sam 2013-08-29 21:34:32 +10:00
parent b41fa4988a
commit cc5b958d9e
1 changed files with 9 additions and 1 deletions

View File

@ -122,13 +122,21 @@ begin
puts "Your Results: (note for timings- percentile is first, duration is second in millisecs)"
facts = Facter.to_hash
facts.delete_if{|k,v|
!["operatingsystem","architecture","kernelversion",
"memorysize", "physicalprocessorcount", "processor0",
"virtual"].include?(k)
}
puts({
"home_page" => home_page,
"topic_page" => topic_page,
"timings" => @timings,
"ruby-version" => "#{RUBY_VERSION}-p#{RUBY_PATCHLEVEL}",
"rails4?" => ENV["RAILS4"] == "1"
}.to_yaml)
}.merge(facts).to_yaml)
# TODO include Facter.to_hash ... for all facts