diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2019-07-02 15:09:07 -0700 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2019-07-02 15:09:07 -0700 |
commit | 7a1a6c8ef26c787e4b6dd1602f3d158b37e81720 (patch) | |
tree | 1e390cd535b38368d091cbb33e5d419408d5ce00 /lib/chef/action_collection.rb | |
parent | 77f8739a4741e2370e40ec39345a92a6ea393a1a (diff) | |
download | chef-7a1a6c8ef26c787e4b6dd1602f3d158b37e81720.tar.gz |
fix Layout/EmptyLineAfterGuardClause
i like this one, gives visual priority to returns or raises that are
buried in the middle of things.
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'lib/chef/action_collection.rb')
-rw-r--r-- | lib/chef/action_collection.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/chef/action_collection.rb b/lib/chef/action_collection.rb index af28bf8542..7b1997cfaf 100644 --- a/lib/chef/action_collection.rb +++ b/lib/chef/action_collection.rb @@ -145,6 +145,7 @@ class Chef # def converge_failed(exception) return if consumers.empty? + detect_unprocessed_resources end @@ -156,6 +157,7 @@ class Chef # def resource_action_start(new_resource, action, notification_type = nil, notifier = nil) return if consumers.empty? + pending_updates << ActionRecord.new(new_resource, action, pending_updates.length) end @@ -166,6 +168,7 @@ class Chef # def resource_current_state_loaded(new_resource, action, current_resource) return if consumers.empty? + current_record.current_resource = current_resource end @@ -175,6 +178,7 @@ class Chef # def resource_up_to_date(new_resource, action) return if consumers.empty? + current_record.status = :up_to_date end @@ -184,6 +188,7 @@ class Chef # def resource_skipped(resource, action, conditional) return if consumers.empty? + current_record.status = :skipped current_record.conditional = conditional end @@ -194,6 +199,7 @@ class Chef # def resource_updated(new_resource, action) return if consumers.empty? + current_record.status = :updated end @@ -203,6 +209,7 @@ class Chef # def resource_failed(new_resource, action, exception) return if consumers.empty? + current_record.status = :failed current_record.exception = exception end @@ -213,6 +220,7 @@ class Chef # def resource_completed(new_resource) return if consumers.empty? + current_record.elapsed_time = new_resource.elapsed_time # Verify if the resource has sensitive data and create a new blank resource with only |