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/config.properties.tmpl

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/config.properties"
98>> content ::File.open(node[“tomcat_path”] + “/webapps/hms/WEB-INF/classes/config.properties.tmpl”).read
99: action :nothing
100: end

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

Thanks