Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
# Returns true or false depending on if the OpenBSD # packet filter is running or not Facter.add("pf_running") do setcode do (%x{/sbin/pfctl -si}.chomp =~ /^status.+enabled/i) ? "running" : "stopped" end end
This paste will be private.
From the Design Piracy series on my blog: