Module: Poise::Helpers::NotifyingBlock

Includes:
SubcontextBlock
Included in:
Provider
Defined in:
lib/poise/helpers/notifying_block.rb

Overview

A provider mixin to provide #notifying_block, a scoped form of Chef's use_inline_resources.

Examples:

class MyProvider < Chef::Provider
  include Chef::Helpers::NotifyingBlock

  def action_run
    notifying_block do
      template '/etc/myapp.conf' do
        # ...
      end
    end
  end
end

Since:

  • 1.0.0