# File lib/chef/run_list/run_list_expansion.rb, line 70 def expand @run_list_items.each_with_index do |entry, index| case entry.type when :recipe recipes << entry.name unless recipes.include?(entry.name) when :role if role = inflate_role(entry.name) apply_role_attributes(role) @run_list_items.insert(index + 1, *role.run_list.run_list_items) end end end end