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

Defined in:
lib/chef/provider/lwrp_base.rb

Overview

Class methods for InlineResources. Overrides the ‘action` DSL method with one that enables inline resource convergence.

Instance Method Summary collapse

Instance Method Details

#action(name, &block) ⇒ Object

Defines an action method on the provider, using recipe_eval_with_update_check to execute the given block.



43
44
45
46
47
# File 'lib/chef/provider/lwrp_base.rb', line 43

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