Nabil
1
The sample code below will never execute the “something” windows_batch command
however many times I update the template.
After a search on the web I found that someone had a similar issue since v10.
Is it possible that this issue still exists? Thanks
windows_batch “something” do
code <<-EOH
echo “this will not execute, but it should” > c:\testoutput.txt 2>&1
EOH
action :nothing
end
template “c:\test.config” do
source 'test.config.erb’
notifies :run, resources(:windows_batch => “something”), :immediately
end
Try specifying the template with forward slash -- it is possible you are
hitting the issue below:
http://tickets.opscode.com/browse/CHEF-4082
Thanks.
-Adam
On 5/2/13 9:49 AM, "nabil@shuhaiber.com" nabil@shuhaiber.com wrote:
The sample code below will never execute the "something" windows_batch
command
however many times I update the template.
After a search on the web I found that someone had a similar issue since
v10.
Is it possible that this issue still exists? Thanks
windows_batch "something" do
code <<-EOH
echo "this will not execute, but it should" > c:\testoutput.txt 2>&1
EOH
action :nothing
end
template "c:\test.config" do
source 'test.config.erb'
notifies :run, resources(:windows_batch => "something"), :immediately
end