1
class Puppet::Network::Client::Report < Puppet::Network::Client
2
@handler = Puppet::Network::Handler.handler(:report)
4
def initialize(hash = {})
5
hash[:Report] = self.class.handler.new if hash.include?(:Report)
10
# Send our report. We get the transaction report and convert it to YAML
12
def report(transreport)
13
report = YAML.dump(transreport)
15
report = CGI.escape(report) unless self.local
19
benchmark(:info, "Sent transaction report") do
20
file = @driver.report(report)