Sha256: 45d37fe2d152840c04441b4e41f51f1ee4e078b7d194fc5b883fe9776484954d

Contents?: true

Size: 406 Bytes

Versions: 45

Compression:

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

45 entries across 45 versions & 1 rubygems

Version Path
chef-12.6.0 lib/chef/chef_fs/data_handler/organization_invites_data_handler.rb
chef-12.6.0-universal-mingw32 lib/chef/chef_fs/data_handler/organization_invites_data_handler.rb
chef-12.5.1-universal-mingw32 lib/chef/chef_fs/data_handler/organization_invites_data_handler.rb
chef-12.5.1 lib/chef/chef_fs/data_handler/organization_invites_data_handler.rb
chef-12.4.3-universal-mingw32 lib/chef/chef_fs/data_handler/organization_invites_data_handler.rb
chef-12.4.3 lib/chef/chef_fs/data_handler/organization_invites_data_handler.rb
chef-12.4.2-universal-mingw32 lib/chef/chef_fs/data_handler/organization_invites_data_handler.rb
chef-12.4.2 lib/chef/chef_fs/data_handler/organization_invites_data_handler.rb
chef-12.5.0.alpha.1 lib/chef/chef_fs/data_handler/organization_invites_data_handler.rb
chef-12.4.1-universal-mingw32 lib/chef/chef_fs/data_handler/organization_invites_data_handler.rb
chef-12.4.1 lib/chef/chef_fs/data_handler/organization_invites_data_handler.rb
chef-12.4.0 lib/chef/chef_fs/data_handler/organization_invites_data_handler.rb
chef-12.4.0-universal-mingw32 lib/chef/chef_fs/data_handler/organization_invites_data_handler.rb
chef-12.4.0.rc.2 lib/chef/chef_fs/data_handler/organization_invites_data_handler.rb
chef-12.4.0.rc.2-universal-mingw32 lib/chef/chef_fs/data_handler/organization_invites_data_handler.rb
chef-12.4.0.rc.0 lib/chef/chef_fs/data_handler/organization_invites_data_handler.rb
chef-12.4.0.rc.0-universal-mingw32 lib/chef/chef_fs/data_handler/organization_invites_data_handler.rb
chef-12.3.0-x86-mingw32 lib/chef/chef_fs/data_handler/organization_invites_data_handler.rb
chef-12.3.0 lib/chef/chef_fs/data_handler/organization_invites_data_handler.rb
chef-12.3.0.rc.0-x86-mingw32 lib/chef/chef_fs/data_handler/organization_invites_data_handler.rb