Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- remote_file local do
- source node[:multicraft][:download_url]
- mode "0644"
- action :nothing
- end
- http_request "HEAD #{node[:multicraft][:download_url]}" do
- message ""
- url node[:multicraft][:download_url]
- action :head
- if File.exists?(local)
- headers "If-Modified-Since" => File.mtime(local).httpdate
- end
- notifies :create,"remote_file[#{local}]", :immediately
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement