Sha256: 6d4ca54b61d7554ae7f66bcf6d2bda23abeaeb601964df0f603ac80d50ad5796

Contents?: true

Size: 423 Bytes

Versions: 4

Compression:

Stored size: 423 Bytes

Contents

require "chef/chef_fs/data_handler/data_handler_base"

class Chef
  module ChefFS
    module DataHandler
      class OrganizationInvitesDataHandler < DataHandlerBase
        def normalize(invites, entry)
          invites.map { |invite| invite.is_a?(Hash) ? invite["username"] : invite }.sort.uniq
        end

        def minimize(invites, entry)
          invites
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
chef-12.22.1 lib/chef/chef_fs/data_handler/organization_invites_data_handler.rb
chef-12.22.1-universal-mingw32 lib/chef/chef_fs/data_handler/organization_invites_data_handler.rb
chef-12.8.1 lib/chef/chef_fs/data_handler/organization_invites_data_handler.rb
chef-12.8.1-universal-mingw32 lib/chef/chef_fs/data_handler/organization_invites_data_handler.rb