17 lines
321 B
Ruby
17 lines
321 B
Ruby
# rubocop:disable Naming/FileName
|
|
# frozen_string_literal: true
|
|
|
|
module Gitlab
|
|
module HealthChecks
|
|
module Probes
|
|
Status = Struct.new(:http_status, :json) do
|
|
# We accept 2xx
|
|
def success?
|
|
http_status / 100 == 2
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|
|
|
|
# rubocop:enable Naming/FileName
|