- From: Ian Marlier <
>
- To: chef <
>
- Subject: [chef] Multiple not_if/only_if blocks?
- Date: Fri, 8 Feb 2013 13:57:42 -0500
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.
- [chef] Multiple not_if/only_if blocks?, Ian Marlier, 02/08/2013
Archive powered by MHonArc 2.6.16.