summaryrefslogtreecommitdiff
path: root/lib/chef/formatters/doc.rb
diff options
context:
space:
mode:
authorJohn Keiser <jkeiser@opscode.com>2014-04-30 10:17:30 -0700
committerJohn Keiser <jkeiser@opscode.com>2014-04-30 10:17:30 -0700
commit5cdb1a0e85e42433369cbb14715648d071d6a283 (patch)
tree33e8e1cdea02bc99f6fd1717953eb46188e0639c /lib/chef/formatters/doc.rb
parent33d86aa1217877f6eae000edd7b45741c9a754c3 (diff)
downloadchef-5cdb1a0e85e42433369cbb14715648d071d6a283.tar.gz
Refactor for simplicity, make the resource a stream
so that it is guaranteed to stick together or at least not get anything else appended to it
Diffstat (limited to 'lib/chef/formatters/doc.rb')
-rw-r--r--lib/chef/formatters/doc.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/chef/formatters/doc.rb b/lib/chef/formatters/doc.rb
index c8b61cc433..4a08b9d095 100644
--- a/lib/chef/formatters/doc.rb
+++ b/lib/chef/formatters/doc.rb
@@ -166,7 +166,7 @@ class Chef
indent
end
# TODO: info about notifies
- start_line "* #{resource} action #{action}"
+ start_line "* #{resource} action #{action}", :stream => resource
indent
end
@@ -183,7 +183,7 @@ class Chef
# Called when a resource action has been skipped b/c of a conditional
def resource_skipped(resource, action, conditional)
# TODO: more info about conditional
- puts " (skipped due to #{conditional.short_description})"
+ puts " (skipped due to #{conditional.short_description})", :stream => resource
unindent
end
@@ -194,12 +194,12 @@ class Chef
# Called when a resource has no converge actions, e.g., it was already correct.
def resource_up_to_date(resource, action)
@up_to_date_resources+= 1
- puts " (up to date)"
+ puts " (up to date)", :stream => resource
unindent
end
def resource_bypassed(resource, action, provider)
- puts " (Skipped: whyrun not supported by provider #{provider.class.name})"
+ puts " (Skipped: whyrun not supported by provider #{provider.class.name})", :stream => resource
unindent
end