Update cookbooks and add wordpress cookbook
This commit is contained in:
@@ -40,7 +40,10 @@ module Poise
|
||||
@parent.lookup(resource)
|
||||
end
|
||||
|
||||
# Iterate and expand all nested contexts
|
||||
# Iterate over all resources, expanding parent context in order.
|
||||
#
|
||||
# @param block [Proc] Iteration block
|
||||
# @return [void]
|
||||
def recursive_each(&block)
|
||||
if @parent
|
||||
if @parent.respond_to?(:recursive_each)
|
||||
@@ -51,6 +54,22 @@ module Poise
|
||||
end
|
||||
each(&block)
|
||||
end
|
||||
|
||||
# Iterate over all resources in reverse order.
|
||||
#
|
||||
# @since 2.3.0
|
||||
# @param block [Proc] Iteration block
|
||||
# @return [void]
|
||||
def reverse_recursive_each(&block)
|
||||
reverse_each(&block)
|
||||
if @parent
|
||||
if @parent.respond_to?(:recursive_each)
|
||||
@parent.reverse_recursive_each(&block)
|
||||
else
|
||||
@parent.reverse_each(&block)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -36,8 +36,8 @@ module Poise
|
||||
# ever fire because the superclass re-raises if there is an error.
|
||||
return super if error
|
||||
delayed_actions.each do |notification|
|
||||
notifications = run_context.delayed_notifications(@resource)
|
||||
if run_context.delayed_notifications(@resource).any? { |existing_notification| existing_notification.duplicates?(notification) }
|
||||
notifications = run_context.parent_run_context.delayed_notifications(@resource)
|
||||
if notifications.any? { |existing_notification| existing_notification.duplicates?(notification) }
|
||||
Chef::Log.info( "#{@resource} not queuing delayed action #{notification.action} on #{notification.resource}"\
|
||||
" (delayed), as it's already been queued")
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user