From 862b47478d3e8609211f69aeca22a6b619889c1e Mon Sep 17 00:00:00 2001 From: vgolubev Date: Wed, 22 Apr 2015 11:32:37 +0200 Subject: [PATCH] Run after_download proc for an artifact, downloaded via remote_file, if it was updated --- providers/file.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/providers/file.rb b/providers/file.rb index c6b3265..9f1fadf 100644 --- a/providers/file.rb +++ b/providers/file.rb @@ -78,6 +78,7 @@ def load_current_resource end else remote_file_resource.run_action(:create) + run_proc :after_download if @remote_file_resource.updated_by_last_action? end raise Chef::Artifact::ArtifactChecksumError unless checksum_valid? write_checksum if Chef::Artifact.from_nexus?(file_location) || Chef::Artifact.from_s3?(file_location)