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

Version Path
chef-14.15.6 lib/chef/chef_fs/data_handler/acl_data_handler.rb
chef-14.15.6-universal-mingw32 lib/chef/chef_fs/data_handler/acl_data_handler.rb
chef-14.14.29 lib/chef/chef_fs/data_handler/acl_data_handler.rb
chef-14.14.29-universal-mingw32 lib/chef/chef_fs/data_handler/acl_data_handler.rb
chef-14.14.25-universal-mingw32 lib/chef/chef_fs/data_handler/acl_data_handler.rb
chef-14.14.25 lib/chef/chef_fs/data_handler/acl_data_handler.rb
chef-14.14.14-universal-mingw32 lib/chef/chef_fs/data_handler/acl_data_handler.rb
chef-14.14.14 lib/chef/chef_fs/data_handler/acl_data_handler.rb
chef-14.13.11 lib/chef/chef_fs/data_handler/acl_data_handler.rb
chef-14.12.9 lib/chef/chef_fs/data_handler/acl_data_handler.rb
chef-14.12.3 lib/chef/chef_fs/data_handler/acl_data_handler.rb
chef-14.11.21 lib/chef/chef_fs/data_handler/acl_data_handler.rb
chef-14.10.9 lib/chef/chef_fs/data_handler/acl_data_handler.rb
chef-14.9.13 lib/chef/chef_fs/data_handler/acl_data_handler.rb
chef-14.8.12 lib/chef/chef_fs/data_handler/acl_data_handler.rb
chef-14.7.17 lib/chef/chef_fs/data_handler/acl_data_handler.rb
chef-14.6.47 lib/chef/chef_fs/data_handler/acl_data_handler.rb
chef-14.5.33 lib/chef/chef_fs/data_handler/acl_data_handler.rb
chef-14.5.27 lib/chef/chef_fs/data_handler/acl_data_handler.rb
chef-14.5.27-universal-mingw32 lib/chef/chef_fs/data_handler/acl_data_handler.rb