willmanio / sonarqube

SonarQube Chef Cookbook
https://supermarket.chef.io/cookbooks/sonarqube
7 stars 27 forks source link

A better way to implement derived attributes. #9

Closed kbaltrinic closed 9 years ago

kbaltrinic commented 9 years ago

Sorry its me again. :) I just learned how to do this better myself and wanted to pass it along. The derived ['sonarqube']['config']['dir'] attribute on Line 6 of the attributes/default.rb is problematic and I have had to code around it. The following article details why and how to fix: https://coderanger.net/derived-attributes/ and I thought it would be a great little fix.

Regards.

pghalliday commented 9 years ago

i like it :) will have to test it though

pghalliday commented 9 years ago

ok done and published in 0.3.2, thanks for the tip