diff options
author | Ranjib Dey <ranjib@pagerduty.com> | 2015-06-24 18:14:29 -0700 |
---|---|---|
committer | Kartik Null Cating-Subramanian <ksubramanian@chef.io> | 2015-06-25 13:05:01 -0400 |
commit | ab092ceb3e68337dbc2fc5e58d00a8311ef8478b (patch) | |
tree | 79de0be47264338272e6c3f65ea5314be94bf38c /lib/chef | |
parent | cb0a6ce775bd9039cc2b892f55cf146ea554c56f (diff) | |
download | chef-ab092ceb3e68337dbc2fc5e58d00a8311ef8478b.tar.gz |
count skipped resources in among total resources
Diffstat (limited to 'lib/chef')
-rw-r--r-- | lib/chef/formatters/doc.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/chef/formatters/doc.rb b/lib/chef/formatters/doc.rb index e76a940c38..5ea9823d78 100644 --- a/lib/chef/formatters/doc.rb +++ b/lib/chef/formatters/doc.rb @@ -22,6 +22,7 @@ class Chef @failed_audits = 0 @start_time = Time.now @end_time = @start_time + @skipped_resources = 0 end def elapsed_time @@ -33,7 +34,7 @@ class Chef end def total_resources - @up_to_date_resources + @updated_resources + @up_to_date_resources + @updated_resources + @skipped_resources end def total_audits @@ -236,6 +237,7 @@ class Chef # Called when a resource action has been skipped b/c of a conditional def resource_skipped(resource, action, conditional) + @skipped_resources += 1 # TODO: more info about conditional puts " (skipped due to #{conditional.short_description})", :stream => resource unindent |