Created
December 3, 2010 21:49
-
-
Save abecciu/727615 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- 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