Sha256: 88440b772e52a1a7c88e6614f05857bb8e1b44eb346a9c6552a77b3b50d232fe

Contents?: true

Size: 808 Bytes

Versions: 1

Compression:

Stored size: 808 Bytes

Contents

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 $

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
puppet-0.18.4 lib/puppet/client/reporter.rb