Created
July 30, 2013 19:47
-
-
Save eherot/6116272 to your computer and use it in GitHub Desktop.
Notification syntax
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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