summaryrefslogtreecommitdiff
path: root/lib/chef/formatters/doc.rb
diff options
context:
space:
mode:
authorJohn Keiser <jkeiser@opscode.com>2014-04-30 09:51:19 -0700
committerJohn Keiser <jkeiser@opscode.com>2014-04-30 09:51:19 -0700
commit33d86aa1217877f6eae000edd7b45741c9a754c3 (patch)
tree1d2e8d532455f34666fb9385b7a9c77aa4b1223e /lib/chef/formatters/doc.rb
parent56d6725b9fd1133d3a953b55096460fb4b219679 (diff)
downloadchef-33d86aa1217877f6eae000edd7b45741c9a754c3.tar.gz
Add ability to stream (and indent) command output
Diffstat (limited to 'lib/chef/formatters/doc.rb')
-rw-r--r--lib/chef/formatters/doc.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/chef/formatters/doc.rb b/lib/chef/formatters/doc.rb
index 89ec59b813..c8b61cc433 100644
--- a/lib/chef/formatters/doc.rb
+++ b/lib/chef/formatters/doc.rb
@@ -240,6 +240,10 @@ class Chef
puts_line("* Whyrun not supported for #{resource}, bypassing load.", :yellow)
end
+ def stream_output(stream, output, options = {})
+ print(output, { :stream => stream }.merge(options))
+ end
+
# Called before handlers run
def handlers_start(handler_count)
puts ''