Is there a way for a recipe to know it's being run with -o

Hi, a little bit of a weird one, but is there a way for a recipe to know it’s being run with -o ie its not being added to he run list and will only run once?


but that’ll create weird tight coupling that’ll probably bite you later

That sounds like exactly what I’m after. Thanks!

It’s a weird one we are bastardising chef a little to grab a choco package with a db upgrade script and run it. If the recipe is in the run list we only want to do if the choco package is new to prevent constantly running dB scriots, so we subscribe got he choco resource to run the script.

For a one time run we are happy for it run the script regardless (the script itself is idempotent on the dB)