Sha256: 39bce01c83fbd8bffc4d37dd37d0ba70d39aa7bdf9792ff9657b15d3c0bf57ed
Contents?: true
Size: 711 Bytes
Versions: 16
Compression:
Stored size: 711 Bytes
Contents
class Puppet::Network::Client::Report < Puppet::Network::Client @handler = Puppet::Network::Handler.handler(:report) def initialize(hash = {}) if hash.include?(:Report) hash[:Report] = self.class.handler.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
Version data entries
16 entries across 16 versions & 1 rubygems