diff options
| author | Luke Kanies <luke@madstop.com> | 2007-10-13 14:07:24 -0500 |
|---|---|---|
| committer | Luke Kanies <luke@madstop.com> | 2007-10-13 14:07:24 -0500 |
| commit | 29feac0cecddc910b74601d0914fa2c83757b10c (patch) | |
| tree | 888305ecde1e4a488304f7e2e169bf1ca38e6d19 /lib/puppet/transaction | |
| parent | 74d77f76a012d523430e43f1092609a4ca584cc7 (diff) | |
| download | puppet-29feac0cecddc910b74601d0914fa2c83757b10c.tar.gz puppet-29feac0cecddc910b74601d0914fa2c83757b10c.tar.xz puppet-29feac0cecddc910b74601d0914fa2c83757b10c.zip | |
Translating the report handler to an indirected model.
I've provided backward compatibility with the old
handler.
The only terminus type that currently exists for reports
is the 'code' terminus, which is used to process reports
in the style of the old handler. At some point, we should
likely switch at least some of these report types (e.g., 'store')
to terminus types.
Diffstat (limited to 'lib/puppet/transaction')
| -rw-r--r-- | lib/puppet/transaction/report.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/puppet/transaction/report.rb b/lib/puppet/transaction/report.rb index 19dd1b629..f73c6a9fb 100644 --- a/lib/puppet/transaction/report.rb +++ b/lib/puppet/transaction/report.rb @@ -1,10 +1,15 @@ require 'puppet' +require 'puppet/indirector' # A class for reporting what happens on each client. Reports consist of # two types of data: Logs and Metrics. Logs are the output that each # change produces, and Metrics are all of the numerical data involved # in the transaction. class Puppet::Transaction::Report + extend Puppet::Indirector + + indirects :report, :terminus_class => :code + attr_accessor :logs, :metrics, :time, :host def <<(msg) |
