Module: Chef::Provider::InlineResources
- Defined in:
- lib/chefspec/extensions/chef/lwrp_base.rb
Overview
12.5 version of inline resources
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
-
#initialize(resource, run_context) ⇒ Object
For LWRPs that call
use_inline_resources, do not create anotherresource_collectionso that everything is added to the parentresource_collection.
Instance Method Details
#initialize(resource, run_context) ⇒ Object
For LWRPs that call use_inline_resources, do not create another resource_collection so that everything is added to the parent resource_collection.
33 34 35 36 37 |
# File 'lib/chefspec/extensions/chef/lwrp_base.rb', line 33 def initialize(resource, run_context) super @run_context = run_context @resource_collection = run_context.resource_collection end |