I'm confused about the logic order of only_if and not_if in Chef's resource model.
In the following example, assuming a file called /tmp/foo containing the word bar:
execute "rm /tmp/foo" do
action :run
only_if "ls /tmp/foo"
not_if "grep bar /tmp/foo"
end
What happens? Are only_if and not_if exclusive? AND? OR? Which comes first? Why?