Sha256: 3aae726a1071c5d28f38196f6bfd849dc84025ae002bd218f222fcd53ca2e3e8
Contents?: true
Size: 745 Bytes
Versions: 196
Compression:
Stored size: 745 Bytes
Contents
require_relative "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
196 entries across 196 versions & 1 rubygems