Sha256: 6ea9e32489e56205ddaf0f2892582cf5cf5ccfe608ed1e26b0d2bd1303ec1e11

Contents?: true

Size: 788 Bytes

Versions: 15

Compression:

Stored size: 788 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

15 entries across 15 versions & 1 rubygems

Version Path
chef-14.13.11-universal-mingw32 lib/chef/chef_fs/data_handler/acl_data_handler.rb
chef-14.12.9-universal-mingw32 lib/chef/chef_fs/data_handler/acl_data_handler.rb
chef-14.12.3-universal-mingw32 lib/chef/chef_fs/data_handler/acl_data_handler.rb
chef-14.11.21-universal-mingw32 lib/chef/chef_fs/data_handler/acl_data_handler.rb
chef-14.10.9-universal-mingw32 lib/chef/chef_fs/data_handler/acl_data_handler.rb
chef-14.9.13-universal-mingw32 lib/chef/chef_fs/data_handler/acl_data_handler.rb
chef-14.8.12-universal-mingw32 lib/chef/chef_fs/data_handler/acl_data_handler.rb
chef-14.7.17-universal-mingw32 lib/chef/chef_fs/data_handler/acl_data_handler.rb
chef-14.6.47-universal-mingw32 lib/chef/chef_fs/data_handler/acl_data_handler.rb
chef-14.5.33-universal-mingw32 lib/chef/chef_fs/data_handler/acl_data_handler.rb
chef-14.3.37-universal-mingw32 lib/chef/chef_fs/data_handler/acl_data_handler.rb
chef-14.2.0-universal-mingw32 lib/chef/chef_fs/data_handler/acl_data_handler.rb
chef-14.1.12-universal-mingw32 lib/chef/chef_fs/data_handler/acl_data_handler.rb
chef-14.1.1-universal-mingw32 lib/chef/chef_fs/data_handler/acl_data_handler.rb
chef-14.0.190-universal-mingw32 lib/chef/chef_fs/data_handler/acl_data_handler.rb