class ChefCLI::PolicyfileCompiler
def expanded_named_run_lists
def expanded_named_run_lists included_policies_named_runlists = included_policies.inject({}) do |acc, policy_spec| lock = policy_spec.policyfile_lock lock.named_run_lists.inject(acc) do |expanded, (name, run_list_items)| expanded[name] ||= Chef::RunList.new run_list_items.each do |run_list_item| expanded[name] << run_list_item end expanded end acc end named_run_lists.inject(included_policies_named_runlists) do |expanded, (name, run_list_items)| expanded[name] ||= Chef::RunList.new run_list_items.each do |run_list_item| expanded[name] << run_list_item end expanded end end