Skip to content

Commit 862b474

Browse files
author
vgolubev
committed
Run after_download proc for an artifact, downloaded via remote_file, if it was updated
1 parent bda3d42 commit 862b474

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

providers/file.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ def load_current_resource
7878
end
7979
else
8080
remote_file_resource.run_action(:create)
81+
run_proc :after_download if @remote_file_resource.updated_by_last_action?
8182
end
8283
raise Chef::Artifact::ArtifactChecksumError unless checksum_valid?
8384
write_checksum if Chef::Artifact.from_nexus?(file_location) || Chef::Artifact.from_s3?(file_location)

0 commit comments

Comments
 (0)