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

Version Path
puppet-retrospec-1.8.0 spec/fixtures/fixture_modules/sample_module/lib/puppet/reports/test
puppet-retrospec-1.7.0 spec/fixtures/fixture_modules/sample_module/lib/puppet/reports/test
puppet-retrospec-1.6.1 spec/fixtures/fixture_modules/sample_module/lib/puppet/reports/test
puppet-retrospec-1.6.0 spec/fixtures/fixture_modules/sample_module/lib/puppet/reports/test
puppet-retrospec-1.5.0 spec/fixtures/fixture_modules/sample_module/lib/puppet/reports/test
puppet-retrospec-1.4.1 spec/fixtures/fixture_modules/sample_module/lib/puppet/reports/test
puppet-retrospec-1.4.0 spec/fixtures/fixture_modules/sample_module/lib/puppet/reports/test
puppet-retrospec-1.3.2 spec/fixtures/fixture_modules/sample_module/lib/puppet/reports/test
puppet-retrospec-1.3.1 spec/fixtures/fixture_modules/sample_module/lib/puppet/reports/test
puppet-retrospec-1.3.0 spec/fixtures/fixture_modules/sample_module/lib/puppet/reports/test
puppet-retrospec-1.2.1 spec/fixtures/fixture_modules/sample_module/lib/puppet/reports/test
puppet-retrospec-1.2.0 spec/fixtures/fixture_modules/sample_module/lib/puppet/reports/test
puppet-retrospec-1.1.0 spec/fixtures/fixture_modules/sample_module/lib/puppet/reports/test
puppet-retrospec-1.0.0 spec/fixtures/fixture_modules/sample_module/lib/puppet/reports/test