Sha256: 8ba5d98693c72f62c27d213f52424d35ee0e6b9623c84b08f0245e32dd75e714

Contents?: true

Size: 761 Bytes

Versions: 4

Compression:

Stored size: 761 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

# $Id: report.rb 2259 2007-03-06 19:03:05Z luke $

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
puppet-0.22.4 lib/puppet/network/client/report.rb
puppet-0.23.0 lib/puppet/network/client/report.rb
puppet-0.23.1 lib/puppet/network/client/report.rb
puppet-0.23.2 lib/puppet/network/client/report.rb