Skip to content

Instantly share code, notes, and snippets.

@abecciu
Created December 3, 2010 21:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save abecciu/727615 to your computer and use it in GitHub Desktop.
Save abecciu/727615 to your computer and use it in GitHub Desktop.
--- runner.rb.orig 2010-12-03 18:47:21.000000000 -0300
+++ runner.rb 2010-12-03 18:48:16.000000000 -0300
@@ -50,6 +50,9 @@
# Determine the appropriate provider for the given resource, then
# execute it.
def run_action(resource, action)
+ # Resolve lazy/forward references in notifications
+ resource.resolve_notification_references
+
resource.run_action(action)
# Execute any immediate and queue up any delayed notifications
@@ -75,11 +78,6 @@
# Iterates over the +resource_collection+ in the +run_context+ calling
# +run_action+ for each resource in turn.
def converge
- # Resolve all lazy/forward references in notifications
- run_context.resource_collection.each do |resource|
- resource.resolve_notification_references
- end
-
# Execute each resource.
run_context.resource_collection.execute_each_resource do |resource|
begin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment