Skip to content

Run a Recipe Before Every Recipe #988

Answered by casey
hisaac asked this question in Q&A
Discussion options

You must be logged in to vote

Not currently. Can you define a setup recipe, and then make it a dependency of every other recipe? Like so:

setup:
  # do some setup

foo: setup
  # do foo stuff

bar: setup
  # do bar stuff

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@hisaac
Comment options

Answer selected by hisaac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants