Module: Chef::Provider::LWRPBase::InlineResources::ClassMethods
- Defined in:
- lib/chefspec/extensions/chef/lwrp_base.rb
Instance Method Summary collapse
-
#action(name, &block) ⇒ Object
For LWRPs that call
use_inline_resources
, do not create anotherresource_collection
so that everything is added to the parentresource_collection
.
Instance Method Details
#action(name, &block) ⇒ Object
For LWRPs that call use_inline_resources
, do not create another resource_collection
so that everything is added to the parent resource_collection
.
64 65 66 |
# File 'lib/chefspec/extensions/chef/lwrp_base.rb', line 64 def action(name, &block) define_method("action_#{name}", &block) end |