Sha256: eab786cef9a5b55ee828d28a1fbbcde445d1a5b9ec83c2021de885ea584c0032

Contents?: true

Size: 862 Bytes

Versions: 9

Compression:

Stored size: 862 Bytes

Contents

module GitHub
  class Ldap
    module MemberSearch
      class Base

        # Internal: The GitHub::Ldap object to search domains with.
        attr_reader :ldap

        # Public: Instantiate new search strategy.
        #
        # - ldap:    GitHub::Ldap object
        # - options: Hash of options
        def initialize(ldap, options = {})
          @ldap    = ldap
          @options = options
        end

        # Public: Abstract: Performs search for group members.
        #
        # Returns Array of Net::LDAP::Entry objects.
        # def perform(entry)
        # end

        # Internal: Domains to search through.
        #
        # Returns an Array of GitHub::Ldap::Domain objects.
        def domains
          @domains ||= ldap.search_domains.map { |base| ldap.domain(base) }
        end
        private :domains
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
github-ldap-1.10.1 lib/github/ldap/member_search/base.rb
github-ldap-1.10.0 lib/github/ldap/member_search/base.rb
github-ldap-1.9.0 lib/github/ldap/member_search/base.rb
github-ldap-1.8.2 lib/github/ldap/member_search/base.rb
github-ldap-1.8.1 lib/github/ldap/member_search/base.rb
github-ldap-1.8.0 lib/github/ldap/member_search/base.rb
github-ldap-1.7.1 lib/github/ldap/member_search/base.rb
github-ldap-1.7.0 lib/github/ldap/member_search/base.rb
github-ldap-1.6.0 lib/github/ldap/member_search/base.rb