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

Version Path
chef-18.6.2-universal-mingw-ucrt lib/chef/chef_fs/data_handler/acl_data_handler.rb
chef-18.6.2 lib/chef/chef_fs/data_handler/acl_data_handler.rb
chef-17.10.163-universal-mingw32 lib/chef/chef_fs/data_handler/acl_data_handler.rb
chef-17.10.163 lib/chef/chef_fs/data_handler/acl_data_handler.rb
chef-18.5.0-x64-mingw-ucrt lib/chef/chef_fs/data_handler/acl_data_handler.rb
chef-18.5.0 lib/chef/chef_fs/data_handler/acl_data_handler.rb
chef-18.4.12-x64-mingw-ucrt lib/chef/chef_fs/data_handler/acl_data_handler.rb
chef-18.4.12 lib/chef/chef_fs/data_handler/acl_data_handler.rb
chef-17.10.122-universal-mingw32 lib/chef/chef_fs/data_handler/acl_data_handler.rb
chef-17.10.122 lib/chef/chef_fs/data_handler/acl_data_handler.rb
chef-17.10.114-universal-mingw32 lib/chef/chef_fs/data_handler/acl_data_handler.rb
chef-17.10.114 lib/chef/chef_fs/data_handler/acl_data_handler.rb
chef-18.4.2-x64-mingw-ucrt lib/chef/chef_fs/data_handler/acl_data_handler.rb
chef-18.4.2 lib/chef/chef_fs/data_handler/acl_data_handler.rb
chef-17.10.95-universal-mingw32 lib/chef/chef_fs/data_handler/acl_data_handler.rb
chef-17.10.95 lib/chef/chef_fs/data_handler/acl_data_handler.rb
chef-18.3.0-x64-mingw-ucrt lib/chef/chef_fs/data_handler/acl_data_handler.rb
chef-18.3.0 lib/chef/chef_fs/data_handler/acl_data_handler.rb
chef-17.10.68-universal-mingw32 lib/chef/chef_fs/data_handler/acl_data_handler.rb
chef-18.2.7-x64-mingw-ucrt lib/chef/chef_fs/data_handler/acl_data_handler.rb