ymlファイルでhashed arrayを表現するには
memo
chefのattributes/default.rbがこんな感じになっていたとする。
{
"testattributes":{
"category01": {
"contents01": [
{
"foo": "bar",
"hoge": "hogehoge"
}
]
}
}
}
これをymlにしてみる。
http://yaml-online-parser.appspot.com/
このサイトでパーステストしながらやってみた。
testattributes:
category01:
contents01:
- {"foo":"bar",
"hoge":"hogehoge"}
こうするとkitchen.yml
からテストできた。{}
は要らないと思ってたら必要だった。
Author And Source
この問題について(ymlファイルでhashed arrayを表現するには), 我々は、より多くの情報をここで見つけました https://qiita.com/penguin_dream/items/146777f57310d1095897著者帰属:元の著者の情報は、元のURLに含まれています。著作権は原作者に属する。
Content is automatically searched and collected through network algorithms . If there is a violation . Please contact us . We will adjust (correct author information ,or delete content ) as soon as possible .