厨师如何覆盖JSON文件attribtues [英] chef how to overwrite attribtues in json file
本文介绍了厨师如何覆盖JSON文件attribtues的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我试图用不同的属性运行两次相同的配方。
有没有在运行列表中指定它的方法吗?
例如:
I'm trying to run the same recipe twice with different attributes. Is there a way to specify it in the run list? Example:
"myRecipe":{
"run-list": "recipe[test], recipe[test]"
}
和第一个应该有标志=假,而第二个应该执行标志=真。
and the first one should have flag=false while second one should execute with flag=true.
推荐答案
没有,这是不可能的。你有你的食谱来实现这样的逻辑和例如遍历数组。
No, that's not possible. You have to implement such logic in your recipe and e.g iterate over an array.
这篇关于厨师如何覆盖JSON文件attribtues的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文