# File lib/chef_zero/chef_data/default_creator.rb, line 392 def default_acl(acl_path, acl={}) owners = nil container_acl = nil PERMISSIONS.each do |perm| acl[perm] ||= {} acl[perm]['actors'] ||= begin owners ||= get_owners(acl_path) end acl[perm]['groups'] ||= begin # When we create containers, we don't merge groups (not sure why). if acl_path[0] == 'organizations' && acl_path[3] == 'containers' [] else container_acl ||= get_container_acl(acl_path) || {} (container_acl[perm] ? container_acl[perm]['groups'] : []) || [] end end end acl end