Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
require 'puppet/reports' Puppet::Reports.register_report(:mylog) do desc "Send all received logs to the local log destinations. Usually the log destination is syslog." def process client = self.host.gsub("..",".") self.logs.each do |log| log.message = "#{client}: #{log.to_s}" Puppet::Util::Log.newmessage(log) end end end
This paste will be private.
From the Design Piracy series on my blog: