Sha256: 93d8f71c19fa9eca25a408fb589146772a042ac1a3f20bacc5757439365689ae

Contents?: true

Size: 414 Bytes

Versions: 3

Compression:

Stored size: 414 Bytes

Contents

require_relative "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 }.compact.sort.uniq
        end

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
chef-15.0.300-universal-mingw32 lib/chef/chef_fs/data_handler/organization_invites_data_handler.rb
chef-15.0.298-universal-mingw32 lib/chef/chef_fs/data_handler/organization_invites_data_handler.rb
chef-15.0.293-universal-mingw32 lib/chef/chef_fs/data_handler/organization_invites_data_handler.rb