summaryrefslogtreecommitdiff
path: root/lib/chef/event_dispatch/base.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/event_dispatch/base.rb
parent56d6725b9fd1133d3a953b55096460fb4b219679 (diff)
downloadchef-33d86aa1217877f6eae000edd7b45741c9a754c3.tar.gz
Add ability to stream (and indent) command output
Diffstat (limited to 'lib/chef/event_dispatch/base.rb')
-rw-r--r--lib/chef/event_dispatch/base.rb14
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/chef/event_dispatch/base.rb b/lib/chef/event_dispatch/base.rb
index 82beefeec9..bfd4503097 100644
--- a/lib/chef/event_dispatch/base.rb
+++ b/lib/chef/event_dispatch/base.rb
@@ -277,6 +277,20 @@ class Chef
def resource_updated(resource, action)
end
+ # A stream has opened.
+ def stream_opened(stream, options = {})
+ end
+
+ # A stream has closed.
+ def stream_closed(stream, options = {})
+ end
+
+ # A chunk of data from a stream. The stream is managed by "stream," which
+ # can be any tag whatsoever. Data in different "streams" may not be placed
+ # on the same line or even sent to the same console.
+ def stream_output(stream, output, options = {})
+ end
+
# Called before handlers run
def handlers_start(handler_count)
end