Skip to content

Instantly share code, notes, and snippets.

@yvovandoorn
Created April 10, 2013 23:46
Show Gist options
  • Save yvovandoorn/5359442 to your computer and use it in GitHub Desktop.
Save yvovandoorn/5359442 to your computer and use it in GitHub Desktop.
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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment