- From: Brad Knowles <
>
- To:
- Cc: Brad Knowles <
>
- Subject: [chef] Re: resource dependency for running bash
- Date: Wed, 11 Sep 2013 08:46:04 -0500
On Sep 10, 2013, at 11:35 PM, Manoj Thakkar
<
>
wrote:
>
How do i add the dependency on that file resource for that bash script , so
>
that the script is not run if the file copied is not a new one.
Do an "action :nothing" in the bash resource. Then, either do a notify from
the file resource to the bash resource, or a subscribe from the bash resource
to the file resource.
See <
http://docs.opscode.com/chef/resources.html#notifications> for more info.
--
Brad Knowles
<
>
LinkedIn Profile: <
http://tinyurl.com/y8kpxu>
Archive powered by MHonArc 2.6.16.