Multiple not_if/only_if blocks?

I have this memory that I read somewhere that multiple only_if/not_if
blocks are allowed within a single resource. For example:

template “/tmp/somefile” do
not_if { File.exist?("/tmp/someotherfile") }
not_if "test -f /dontdoanything"
not_if "grep ‘somejunk’ /etc/passwd"
end

Is that actually allowed? I can’t find where I saw a reference to this now.


Ian Marlier | Manager of Platform Operations
Brightcove, Inc.
290 Congress Street, 4th Floor, Boston, MA 02110
imarlier@brightcove.com