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-16.16.13 lib/chef/chef_fs/data_handler/acl_data_handler.rb
chef-17.6.18-universal-mingw32 lib/chef/chef_fs/data_handler/acl_data_handler.rb
chef-17.6.18 lib/chef/chef_fs/data_handler/acl_data_handler.rb
chef-17.6.15-universal-mingw32 lib/chef/chef_fs/data_handler/acl_data_handler.rb
chef-17.6.15 lib/chef/chef_fs/data_handler/acl_data_handler.rb
chef-16.16.7-universal-mingw32 lib/chef/chef_fs/data_handler/acl_data_handler.rb
chef-16.16.7 lib/chef/chef_fs/data_handler/acl_data_handler.rb
chef-17.5.22-universal-mingw32 lib/chef/chef_fs/data_handler/acl_data_handler.rb
chef-17.5.22 lib/chef/chef_fs/data_handler/acl_data_handler.rb
chef-16.15.22-universal-mingw32 lib/chef/chef_fs/data_handler/acl_data_handler.rb
chef-16.15.22 lib/chef/chef_fs/data_handler/acl_data_handler.rb
chef-17.4.38-universal-mingw32 lib/chef/chef_fs/data_handler/acl_data_handler.rb
chef-17.4.38 lib/chef/chef_fs/data_handler/acl_data_handler.rb
chef-17.4.25-universal-mingw32 lib/chef/chef_fs/data_handler/acl_data_handler.rb
chef-17.4.25 lib/chef/chef_fs/data_handler/acl_data_handler.rb
chef-16.14.1-universal-mingw32 lib/chef/chef_fs/data_handler/acl_data_handler.rb
chef-16.14.1 lib/chef/chef_fs/data_handler/acl_data_handler.rb
chef-17.3.48-universal-mingw32 lib/chef/chef_fs/data_handler/acl_data_handler.rb
chef-17.3.48 lib/chef/chef_fs/data_handler/acl_data_handler.rb
chef-17.2.29-universal-mingw32 lib/chef/chef_fs/data_handler/acl_data_handler.rb