summaryrefslogtreecommitdiff
path: root/lib/chef/chef_class.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef/chef_class.rb')
-rw-r--r--lib/chef/chef_class.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/chef/chef_class.rb b/lib/chef/chef_class.rb
index c490615861..d9c141b85d 100644
--- a/lib/chef/chef_class.rb
+++ b/lib/chef/chef_class.rb
@@ -51,8 +51,10 @@ class Chef
attr_reader :run_context
# Register an event handler with user specified block
+ #
+ # @return[Chef::EventDispatch::Base] handler object
def event_handler(&block)
- dsl = Chef::EventDispatch::DSL.new
+ dsl = Chef::EventDispatch::DSL.new('Chef client DSL')
dsl.instance_eval(&block)
end