Skip to content

Commit

Permalink
Run after_download proc for an artifact, downloaded via remote_file, …
Browse files Browse the repository at this point in the history
…if it was updated
  • Loading branch information
vgolubev committed Apr 22, 2015
1 parent bda3d42 commit 862b474
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions providers/file.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 862b474

Please sign in to comment.