summaryrefslogtreecommitdiff
path: root/lib/chef/formatters
diff options
context:
space:
mode:
authorThom May <thom@chef.io>2016-03-03 11:37:44 +0000
committerThom May <thom@chef.io>2016-03-04 14:47:58 +0000
commitff539423f067ee83c07dcf73cbf688c6a07f64ae (patch)
tree5472f234d9df0892df49313f8407b4c003fab1fe /lib/chef/formatters
parent788ec4597c9f1517c26d85703bdc79ea01e5ff53 (diff)
downloadchef-ff539423f067ee83c07dcf73cbf688c6a07f64ae.tar.gz
Enable progress output to be configuredtm/remote_file_download_progress
Add tests around progress output and tidy up
Diffstat (limited to 'lib/chef/formatters')
-rw-r--r--lib/chef/formatters/doc.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/formatters/doc.rb b/lib/chef/formatters/doc.rb
index 31732066a8..bad22370ae 100644
--- a/lib/chef/formatters/doc.rb
+++ b/lib/chef/formatters/doc.rb
@@ -259,7 +259,7 @@ class Chef
indent
end
- def resource_action_progress(resource, current, total, interval)
+ def resource_update_progress(resource, current, total, interval)
@progress[resource] ||= 0
percent_complete = (current.to_f / total.to_f * 100).to_i
@@ -269,7 +269,7 @@ class Chef
@progress[resource] = percent_complete
if percent_complete % interval == 0
- start_line " - Progress: #{percent_complete}/100 %", :green
+ start_line " - Progress: #{percent_complete}%", :green
end
end
end