Module: Chef::Provider::LWRPBase::InlineResources::ClassMethods

Defined in:
lib/chefspec/extensions/chef/lwrp_base.rb

Instance Method Summary collapse

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.

Parameters:

  • name (String)

16
17
18
# File 'lib/chefspec/extensions/chef/lwrp_base.rb', line 16

def action(name, &block)
  define_method("action_#{name}", &block)
end