michaelklishin / cassandra-chef-cookbook

Chef cookbook for Apache Cassandra, DataStax Enterprise (DSE) and DataStax agent
Apache License 2.0
163 stars 228 forks source link

Coding convention #345

Closed rhardouin closed 7 years ago

rhardouin commented 7 years ago

Hi,

I want to contribute but I see different notations in templates.

For instances:

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!

michaelklishin commented 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 ;)

rhardouin commented 7 years ago

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!)