service "Apache2.2" do
action :nothing
end
file "C:\\blah.txt" do
notifies :restart, "service[Apache2.2]", :immediate
end
PS C:\chef\cache> chef-apply.bat .\apache.rb
Recipe: (chef-apply cookbook)::(chef-apply recipe)
* service[Apache2.2] action nothing (up to date)
* file[C:\blah.txt] action create
- create new file C:/blah.txt
(no diff)