How to check if the war file deployed by puppetlabs-tomcat module is new
I need to send an email only when the tomcat deployment of war file is complete and the war file is newer than what was before. How do i do that? I have the mail command working but the mail part sends an email every time the deploy module runs, it should be restricted to send email only when the war file changes in tomcat::catalina::base/webapps/filename.war.
Please provide examples. Many thanks in advance.