opscode/chef — pull request #474 by danielsdeleo (2012-11-07 23:38:25+00:00)
Title: [CHEF-2903] load attribute files in run_list order

Other files (e.g. libraries) are not changed, but the code here could be refactored to add ordering for those as well.

Attribute load order is now based on the following:
1. expand run_list
2. map the run_list order to a cookbook order, remove duplicates
3. iterate over the ordered list
4. if a cookbook has dependencies, sort them, and load attributes files
5. load attributes files for the cookbook

Within a cookbook, `default.rb` is loaded first, then the rest of the attributes files are loaded in sort order.