Sha256: 685b870e1f456822567e78dea7e6b6c91c35bb9a6933a093d874d62508b83567

Contents?: true

Size: 347 Bytes

Versions: 6

Compression:

Stored size: 347 Bytes

Contents

# frozen_string_literal: true

module Orchestration
  module Services
    module HAProxy
      class Healthcheck
        include HealthcheckBase

        def connect
          Net::HTTP.start('localhost', @configuration.local_port)
        end

        def connection_errors
          [Errno::ECONNREFUSED]
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
orchestration-0.3.14 lib/orchestration/services/haproxy/healthcheck.rb
orchestration-0.3.13 lib/orchestration/services/haproxy/healthcheck.rb
orchestration-0.3.12 lib/orchestration/services/haproxy/healthcheck.rb
orchestration-0.3.11 lib/orchestration/services/haproxy/healthcheck.rb
orchestration-0.3.10 lib/orchestration/services/haproxy/healthcheck.rb
orchestration-0.3.9 lib/orchestration/services/haproxy/healthcheck.rb