diff options
| author | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2007-05-04 05:04:29 +0000 |
|---|---|---|
| committer | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2007-05-04 05:04:29 +0000 |
| commit | 28254b55cc65d572e9036046d7765c6dd7505e70 (patch) | |
| tree | 5ae1067534c9bdf6de73a79836afb3ba84438d36 /lib/puppet/transaction.rb | |
| parent | 0c07125397428a0c1ca9a4a4d0176f45d8be0979 (diff) | |
| download | puppet-28254b55cc65d572e9036046d7765c6dd7505e70.tar.gz puppet-28254b55cc65d572e9036046d7765c6dd7505e70.tar.xz puppet-28254b55cc65d572e9036046d7765c6dd7505e70.zip | |
Adding a --summarize option, to get a transaction summary
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2459 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'lib/puppet/transaction.rb')
| -rw-r--r-- | lib/puppet/transaction.rb | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/lib/puppet/transaction.rb b/lib/puppet/transaction.rb index e211b0f5b..9eaca63a6 100644 --- a/lib/puppet/transaction.rb +++ b/lib/puppet/transaction.rb @@ -27,7 +27,10 @@ class Transaction Values must be comma-separated."], :evaltrace => [false, "Whether each resource should log when it is being evaluated. This allows you to interactively see exactly - what is being done."] + what is being done."], + :summarize => [false, + "Whether to print a transaction summary." + ] ) # Add some additional times for reporting @@ -409,16 +412,6 @@ class Transaction total end - # Unfortunately, RRD does not deal well with changing lists of values, - # so we have to pick a list of values and stick with it. In this case, - # that means we record the total time, the config time, and that's about - # it. We should probably send each type's time as a separate metric. - @timemetrics.dup.each do |name, value| - if Puppet::Type.type(name) - @timemetrics.delete(name) - end - end - # Add all of the metrics related to resource count and status @report.newmetric(:resources, @resourcemetrics) |
