summaryrefslogtreecommitdiff
path: root/spec/unit/resource/chocolatey_source_spec.rb
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2020-03-31 18:01:44 -0700
committerLamont Granquist <lamont@scriptkiddie.org>2020-03-31 18:01:44 -0700
commitb2366a11103a53518704b54ab58c5b9b8e45a241 (patch)
tree320be5a050f0822ed614ee3eb432a9915ce1a101 /spec/unit/resource/chocolatey_source_spec.rb
parent6ae856dc424d42154f73a225f4fb71196c4c2f23 (diff)
downloadchef-b2366a11103a53518704b54ab58c5b9b8e45a241.tar.gz
Add after_resource to pair with current_resource
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>
Diffstat (limited to 'spec/unit/resource/chocolatey_source_spec.rb')
0 files changed, 0 insertions, 0 deletions