Sha256: ad8d164fcc87f381cdc9e2e64a3cb65045b9920557f6f18c04a8041df396c4fe
Contents?: true
Size: 486 Bytes
Versions: 14
Compression:
Stored size: 486 Bytes
Contents
# More info for creating reports can be found here: # https://docs.puppetlabs.com/guides/reporting.html require 'puppet' # require any other Ruby libraries necessary for this specific report Puppet::Reports.register_report(:myreport) do desc <<EOF Process reports via the my_cool_cmdb API. EOF def process # do something that sets up the API we're sending the report to. # Post the report object (self), after dumping it to yaml: my_api.post(self.to_yaml) end end
Version data entries
14 entries across 14 versions & 1 rubygems