You can extrapolate the idea in the accepted answer here
http://stackoverflow.com/questions/6974057/what-is-the-best-way-in-ruby-to-check-if-a-file-was-actually-modified
Chris
From: Douglas Garstang [mailto: Sent: Thursday, December 04, 2014 12:18 PM To: Subject: [chef] Execute only if file updated?
All,
Is there a way to make chef run an execute ONLY IF a file is updated? Otherwise, _never_? Doug
Archive powered by MHonArc 2.6.16.