summaryrefslogtreecommitdiff
path: root/lib/chef/mixin/lazy_module_include.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef/mixin/lazy_module_include.rb')
-rw-r--r--lib/chef/mixin/lazy_module_include.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/chef/mixin/lazy_module_include.rb b/lib/chef/mixin/lazy_module_include.rb
index 34e1fce4f1..6705758c4b 100644
--- a/lib/chef/mixin/lazy_module_include.rb
+++ b/lib/chef/mixin/lazy_module_include.rb
@@ -1,5 +1,5 @@
#
-# Copyright:: Copyright 2011-2016, Chef Software Inc.
+# Copyright:: Copyright 2011-2019, Chef Software Inc.
# License:: Apache License, Version 2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -52,6 +52,7 @@ class Chef
infector = Module.new do
define_method(:included) do |subklass|
super(subklass)
+ puts "infecting #{subclass}"
subklass.extend(infector)
parent_klass.descendants.push(subklass)
end
@@ -68,6 +69,7 @@ class Chef
super
classes.each do |klass|
descendants.each do |descendant|
+ puts "recursively including #{klass} into #{descendant}"
descendant.send(:include, klass)
end
end