Closed rhardouin closed 7 years ago
As far as I can see Chef Style Guide only uses the latter. I don't remember where but I believe reading that the dot notation is going away in a future version? If that's true we should stick to the notation that's not going away ;)
Indeed, method notation (what I called "dot notation") will be removed in Chef 13.
I will make a PR to remove "method access" and add a note in README. Closing this issue as it's clear we must choose bracket notation.
(Thanks @pdalpra to tell me that erubis
means templates!)
Hi,
I want to contribute but I see different notations in templates.
For instances:
cassandra.service.erb
:<%= node.cassandra.user %>
cassandra.yaml.erb
:<%= node['cassandra']['version'] %>
Can we make a choice and mention it in Contributing section of the README? This section should also specify other rules - not only for templates.
Thanks!