Should I use include_recipe or add the recipe to run_list?

前端 未结 2 665
难免孤独
难免孤独 2021-01-31 07:25

Trying to figure out the best approach for a large project. When is it appropriate to add recipes within a recipe by using include_recipe as opposed to adding the r

2条回答
  •  长发绾君心
    2021-01-31 07:43

    All logic should be controlled with run lists. Cookbooks, try as they might, are not as re-usable as people would like to think. All include_recipe does is add another place where users have to look to figure out what the run list is going to do so make it explicit and put it in the run list.

提交回复
热议问题