Sha256: 94575599a6db4a7e5dbad8cb97461623a8cde6e602e2b3b49f7db49d4d0f537b

Contents?: true

Size: 414 Bytes

Versions: 39

Compression:

Stored size: 414 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 }.compact.sort.uniq
        end

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

Version data entries

39 entries across 39 versions & 1 rubygems

Version Path
chef-14.15.6 lib/chef/chef_fs/data_handler/organization_invites_data_handler.rb
chef-14.15.6-universal-mingw32 lib/chef/chef_fs/data_handler/organization_invites_data_handler.rb
chef-14.14.29 lib/chef/chef_fs/data_handler/organization_invites_data_handler.rb
chef-14.14.29-universal-mingw32 lib/chef/chef_fs/data_handler/organization_invites_data_handler.rb
chef-14.14.25-universal-mingw32 lib/chef/chef_fs/data_handler/organization_invites_data_handler.rb
chef-14.14.25 lib/chef/chef_fs/data_handler/organization_invites_data_handler.rb
chef-14.14.14-universal-mingw32 lib/chef/chef_fs/data_handler/organization_invites_data_handler.rb
chef-14.14.14 lib/chef/chef_fs/data_handler/organization_invites_data_handler.rb
chef-14.13.11 lib/chef/chef_fs/data_handler/organization_invites_data_handler.rb
chef-14.12.9 lib/chef/chef_fs/data_handler/organization_invites_data_handler.rb
chef-14.12.3 lib/chef/chef_fs/data_handler/organization_invites_data_handler.rb
chef-13.12.14 lib/chef/chef_fs/data_handler/organization_invites_data_handler.rb
chef-14.11.21 lib/chef/chef_fs/data_handler/organization_invites_data_handler.rb
chef-14.10.9 lib/chef/chef_fs/data_handler/organization_invites_data_handler.rb
chef-14.9.13 lib/chef/chef_fs/data_handler/organization_invites_data_handler.rb
chef-14.8.12 lib/chef/chef_fs/data_handler/organization_invites_data_handler.rb
chef-14.7.17 lib/chef/chef_fs/data_handler/organization_invites_data_handler.rb
chef-13.12.3 lib/chef/chef_fs/data_handler/organization_invites_data_handler.rb
chef-14.6.47 lib/chef/chef_fs/data_handler/organization_invites_data_handler.rb
chef-13.11.3 lib/chef/chef_fs/data_handler/organization_invites_data_handler.rb