summaryrefslogtreecommitdiff
path: root/lib/chef/action_collection.rb
Commit message (Collapse)AuthorAgeFilesLines
* Add a slow resources report to chef-clientLamont Granquist2021-05-281-26/+6
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Per resource error detail client runVivek Singh2020-07-311-0/+4
| | | | | | | - Add error_description to action_collection of resource based object. - Add error hash message class, message and detail to resource object. Signed-off-by: Vivek Singh <vivek.singh@msystechnologies.com>
* Remove copyright dateslcg/remove-copyright-datesLamont Granquist2020-04-131-1/+1
| | | | | | | | Legally incredibly dubious, particularly since we don't follow it strictly as policy, and we have git history instead, which does it right. This is just a waste of time and a cargo cult. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Add after_resource to pair with current_resourceLamont Granquist2020-03-311-6/+17
| | | | | | | | | | | | | | | | | | | For custom resources which correctly implement load_current_value the new after_resource comes for "free" and load_current_value will be called twice to load the current_resource (should be renamed the "before_resource" but that ship sailed) and then the after_resource. Appropriate wiring is added for a new event and capturing that into the action_collection and then the data_collector. The resource_reporter has not and will not be updated. For old style resources which are difficult to convert to custom resources (thinking here particularly of the 1:N model of the service resource in core chef, or stuff that just may be a lot of work like the file resource) then they can override the load_after_resource to manually wire up their own after_resource. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* fix Layout/EmptyLineAfterGuardClauseLamont Granquist2019-07-021-0/+8
| | | | | | | 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>
* Convert require to require_relativeLamont Granquist2019-05-081-1/+1
| | | | | | | This gives a speed boost since rubygems does not have to scan through every gem in the gemset in order to find the file. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Extract Action Collection from Data CollectorLamont Granquist2019-03-111-0/+252
See the PR for details on this change. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>