class Chef::ChefFS::FileSystem::ChefServer::PoliciesAclDir
Public Instance Methods
children()
click to toggle source
Policies are presented like /NAME-VERSION.json. But there is only one ACL for a given NAME. So we find out the unique policy names, and make one acls/policies/NAME.json for each one.
# File lib/chef/chef_fs/file_system/chef_server/policies_acl_dir.rb, line 29 def children if @children.nil? # /acls/policies -> List ../../policies names = parent.parent.child(name).children.map { |child| "#{child.policy_name}.json" } @children = names.uniq.map { |name| make_child_entry(name, true) } end @children end