# File lib/chef/chef_fs/file_system/multiplexed_dir.rb, line 38 def can_have_child?(name, is_dir) write_dir.can_have_child?(name, is_dir) end
# File lib/chef/chef_fs/file_system/multiplexed_dir.rb, line 19 def children begin result = [] seen = {} # If multiple things have the same name, the first one wins. multiplexed_dirs.each do |dir| dir.children.each do |child| if seen[child.name] Chef::Log.warn("Child with name '#{child.name}' found in multiple directories: #{seen[child.name].path_for_printing} and #{child.path_for_printing}") else result << child seen[child.name] = child end end end result end end
Generated with the Darkfish Rdoc Generator 2.