Sha256: 41541e7f79004c3d210a7da5496646f5317f1e1cd25861d8a4dc689cba6b59f4

Contents?: true

Size: 354 Bytes

Versions: 40

Compression:

Stored size: 354 Bytes

Contents

# frozen_string_literal: true

require 'resolv'

module Legitbot
  module Config
    module Resolver # :nodoc:
      def resolver_config(options = nil)
        @resolver_config = options
      end

      def resolver
        @resolver_config ||= Legitbot.resolver_config
        @resolver ||= Resolv::DNS.new @resolver_config
      end
    end
  end
end

Version data entries

40 entries across 40 versions & 1 rubygems

Version Path
legitbot-1.11.2 lib/legitbot/config/resolver.rb
legitbot-1.11.1 lib/legitbot/config/resolver.rb
legitbot-1.11.0 lib/legitbot/config/resolver.rb
legitbot-1.10.6 lib/legitbot/config/resolver.rb
legitbot-1.10.5 lib/legitbot/config/resolver.rb
legitbot-1.10.4 lib/legitbot/config/resolver.rb
legitbot-1.10.3 lib/legitbot/config/resolver.rb
legitbot-1.10.1 lib/legitbot/config/resolver.rb
legitbot-1.10.0 lib/legitbot/config/resolver.rb
legitbot-1.9.4 lib/legitbot/config/resolver.rb
legitbot-1.9.3 lib/legitbot/config/resolver.rb
legitbot-1.9.2 lib/legitbot/config/resolver.rb
legitbot-1.9.1 lib/legitbot/config/resolver.rb
legitbot-1.9.0 lib/legitbot/config/resolver.rb
legitbot-1.8.0 lib/legitbot/config/resolver.rb
legitbot-1.7.3 lib/legitbot/config/resolver.rb
legitbot-1.7.2 lib/legitbot/config/resolver.rb
legitbot-1.7.1 lib/legitbot/config/resolver.rb
legitbot-1.7.0 lib/legitbot/config/resolver.rb
legitbot-1.6.1 lib/legitbot/config/resolver.rb