Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
define replace_matching_line( $match, $replace ) { exec { "/usr/bin/ruby -i -p -e 'sub(%r{$match}, \'$replace\')' $name": onlyif => "/bin/grep -E '$match' $name", } }
This paste will be private.
From the Design Piracy series on my blog: