Sha256: 6c0e669dd2ed93c1096472f25b338b5321c035486eada440ed621fb6ad020f4f
Contents?: true
Size: 762 Bytes
Versions: 29
Compression:
Stored size: 762 Bytes
Contents
require "chef/chef_fs/data_handler/data_handler_base" class Chef module ChefFS module DataHandler class AclDataHandler < DataHandlerBase def normalize(acl, entry) # Normalize the order of the keys for easier reading result = normalize_hash(acl, { "create" => {}, "read" => {}, "update" => {}, "delete" => {}, "grant" => {}, }) result.each_key do |key| result[key] = normalize_hash(result[key], { "actors" => [], "groups" => [] }) result[key]["actors"] = result[key]["actors"].sort result[key]["groups"] = result[key]["groups"].sort end result end end end end end
Version data entries
29 entries across 29 versions & 1 rubygems