Sha256: 6b6f3e4e2f19c81eb9f3a70ec5a5010eb2062fe394db3bceb9307abb2c96fe1d

Contents?: true

Size: 565 Bytes

Versions: 5

Compression:

Stored size: 565 Bytes

Contents

module PansophyAuthenticator
  module Configuration
    module Verification
      class Verify
        def initialize(configuration)
          @configuration = configuration
        end

        def call
          verifiers.map { |verifier| verifier.new(@configuration).verify }.reduce(&:+)
        end

        private

        def verifiers
          [Common, specific_verifier]
        end

        def specific_verifier
          if @configuration.local?
            Local
          else
            Remote
          end
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
pansophy_authenticator-0.4.3 lib/pansophy_authenticator/configuration/verification/verify.rb
pansophy_authenticator-0.4.2 lib/pansophy_authenticator/configuration/verification/verify.rb
pansophy_authenticator-0.4.1 lib/pansophy_authenticator/configuration/verification/verify.rb
pansophy_authenticator-0.4.0 lib/pansophy_authenticator/configuration/verification/verify.rb
pansophy_authenticator-0.3.0 lib/pansophy_authenticator/configuration/verification/verify.rb