[chef] Re: Creating a delayed action from a ruby_block


Chronological Thread 
  • From: AJ Christensen < >
  • To:
  • Subject: [chef] Re: Creating a delayed action from a ruby_block
  • Date: Mon, 1 Aug 2011 10:52:15 -0700

Try the:

notifies :foo, "resource[bar]", :delayed

On Aug 1, 2011 10:48 AM, "Charles Duffy" < "> > wrote:
> Howdy, all --
>
> I have a ruby_block in which I do some comparison of file mtimes at
> execution time, and -- depending on the result -- may or may not wish to
> trigger a delayed action.
>
> Thing is... what's the syntax to do so? This is in Chef 0.10, and the
> targeted resource hasn't been declared yet at the time (so the old-style
> references, as I understand it, aren't yet available).
>
> Thanks!



Archive powered by MHonArc 2.6.16.

§