File resource error

Hi guys,

I do next steps:

  1. unzipping a file

  2. run smth like

do some work on files

Chef shows error.

No such file or directory @ rb_sysopen - /var/apache-tomcat/webapps/app/WEB-INF/classes/

The trick is the file chef is complaining is inside the archive. Is there any way to wait till step 1 is finished?

To be clear here’s the code

93: file “copy_config_prop” do
94: owner 'root’
95: group 'root’
96: mode 0644
97: path node[“tomcat_path”] + "/conf/"
98>> content[“tomcat_path”] + “/webapps/hms/WEB-INF/classes/”).read
99: action :nothing
100: end

/webapps/hms/WEB-INF/classes/ created after directory is unzipped.