Skip to content

Instantly share code, notes, and snippets.

@eherot
Created July 30, 2013 19:47
Show Gist options
  • Save eherot/6116272 to your computer and use it in GitHub Desktop.
Save eherot/6116272 to your computer and use it in GitHub Desktop.
Notification syntax
action :create do
template new_resource.path do
source "other_template.erb"
action :nothing
end
t = template "#{Chef::Config[:file_cache_path]}/#{apex}.zone" do
source "zone.erb"
notifies :create, "template[#{new_resource.path}]"
end
new_resource.updated_by_last_action(t.updated_by_last_action?)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment