On Sep 12, 2013, at 3:00 PM, Alan Ivey < "> > wrote:Yeah, but if there's an old war file that's already there, will it replace that with the new one?
> The :create_if_missing action will only put the file in place if it doesn't already exist.
>
> The .war file can be in the cookbook/files/default/file_name.war. Then, use the action:
>
> cookbook_file "/destination/path/to/file_name.war" do
> action :create_if_missing"
> end
I think the OP wants an "action :create" here, and leave it up to Chef to check the hash signature of the war file to see if it actually needs to be updated or not.
--
Brad Knowles < "> >
LinkedIn Profile: <http://tinyurl.com/y8kpxu>
Archive powered by MHonArc 2.6.16.