summaryrefslogtreecommitdiff
path: root/features/data/cookbooks/delayed_notifications/recipes/forward_references.rb
blob: 14d82eef0c3ef37a4173fd9608b5bfa3c1373cc3 (plain)
1
2
3
4
5
6
7
8
9
10
execute("echo foo") do
  # refers to the resource below, which isn't defined yet.
  # expected behavior is for the reference to be resolved later
  # and the notification to work correctly
  notifies(:create, "file[#{node[:tmpdir]}/notified_file.txt]")
end

file "#{node[:tmpdir]}/notified_file.txt" do
  action :nothing
end