Duh on me, that makes sense. The logging code was just test code. I want to do something real between the do-ends, but only do it once. I want to use chef resources so I’m shying away from
ruby_block for this one. Chris From: Daniel Condomitti [mailto:
The block (code between do/end) is still evaluated, otherwise not_if/only_if wouldn’t fire. cwd/cmd are conditional on the only_if/not_if directives. If you need to run ruby code conditionally (such as logging) use a ruby_block and notifies. On Tuesday, February 3, 2015 at 2:59 PM, Fouts, Chris wrote:
|
Archive powered by MHonArc 2.6.16.