Sha256: 7c3bcf6903fb943acf5587a2c2f3a01c141640ac0566b5085f9c4d21f40d3209
Contents?: true
Size: 700 Bytes
Versions: 9
Compression:
Stored size: 700 Bytes
Contents
require 'chef_fs/data_handler/data_handler_base' module ChefFS module DataHandler class AclDataHandler < DataHandlerBase def normalize(node, entry) # Normalize the order of the keys for easier reading result = normalize_hash(node, { 'create' => {}, 'read' => {}, 'update' => {}, 'delete' => {}, 'grant' => {} }) result.keys.each 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
Version data entries
9 entries across 9 versions & 1 rubygems