Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
Facter.add("redhatrelease") do confine :kernel => :linux setcode do if FileTest.exists?("/etc/redhat-release") File.readlines("/etc/redhat-release").to_s.chomp.match(/(.*)\srelease\s(\S*)/)[2] end end end
This paste will be private.
From the Design Piracy series on my blog: