Sha256: 96ad3cd9cf8ece94008fd0a5d4dc9a8704da8c07d7a78ee940798cbd5d9112b6

Contents?: true

Size: 431 Bytes

Versions: 25

Compression:

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

25 entries across 25 versions & 1 rubygems

Version Path
chef-14.13.11-universal-mingw32 lib/chef/chef_fs/data_handler/organization_invites_data_handler.rb
chef-14.12.9-universal-mingw32 lib/chef/chef_fs/data_handler/organization_invites_data_handler.rb
chef-14.12.3-universal-mingw32 lib/chef/chef_fs/data_handler/organization_invites_data_handler.rb
chef-13.12.14-universal-mingw32 lib/chef/chef_fs/data_handler/organization_invites_data_handler.rb
chef-14.11.21-universal-mingw32 lib/chef/chef_fs/data_handler/organization_invites_data_handler.rb
chef-14.10.9-universal-mingw32 lib/chef/chef_fs/data_handler/organization_invites_data_handler.rb
chef-14.9.13-universal-mingw32 lib/chef/chef_fs/data_handler/organization_invites_data_handler.rb
chef-14.8.12-universal-mingw32 lib/chef/chef_fs/data_handler/organization_invites_data_handler.rb
chef-14.7.17-universal-mingw32 lib/chef/chef_fs/data_handler/organization_invites_data_handler.rb
chef-13.12.3-universal-mingw32 lib/chef/chef_fs/data_handler/organization_invites_data_handler.rb
chef-14.6.47-universal-mingw32 lib/chef/chef_fs/data_handler/organization_invites_data_handler.rb
chef-13.11.3-universal-mingw32 lib/chef/chef_fs/data_handler/organization_invites_data_handler.rb
chef-14.5.33-universal-mingw32 lib/chef/chef_fs/data_handler/organization_invites_data_handler.rb
chef-13.10.4-universal-mingw32 lib/chef/chef_fs/data_handler/organization_invites_data_handler.rb
chef-14.3.37-universal-mingw32 lib/chef/chef_fs/data_handler/organization_invites_data_handler.rb
chef-13.10.0-universal-mingw32 lib/chef/chef_fs/data_handler/organization_invites_data_handler.rb
chef-13.9.4-universal-mingw32 lib/chef/chef_fs/data_handler/organization_invites_data_handler.rb
chef-14.2.0-universal-mingw32 lib/chef/chef_fs/data_handler/organization_invites_data_handler.rb
chef-14.1.12-universal-mingw32 lib/chef/chef_fs/data_handler/organization_invites_data_handler.rb
chef-14.1.1-universal-mingw32 lib/chef/chef_fs/data_handler/organization_invites_data_handler.rb