Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
if File.exists?("/etc/facts.txt") File.open("/etc/facts.txt").each do |line| if line =~ /^(.+)=(.+)$/ var = $1 val = $2 Facter.add(var) do setcode { val } end end end end
This paste will be private.
From the Design Piracy series on my blog: