class Puppet::Client::Reporter < Puppet::Client @drivername = :Report # set up the appropriate interface methods @handler = Puppet::Server::Report def initialize(hash = {}) if hash.include?(:Report) hash[:Report] = Puppet::Server::Report.new() end super(hash) end # Send our report. We get the transaction report and convert it to YAML # as appropriate. def report(transreport) report = YAML.dump(transreport) unless self.local report = CGI.escape(report) end # Now send the report file = nil benchmark(:info, "Sent transaction report") do file = @driver.report(report) end file end end # $Id: reporter.rb 1422 2006-07-22 03:32:56Z luke $