Sha256: 8111dc52a0a9f3c2b0a969c43b705ede261d22294b57238c4703060ca768b639

Contents?: true

Size: 260 Bytes

Versions: 105

Compression:

Stored size: 260 Bytes

Contents

module GovukHealthcheck
  class Mongoid
    def name
      :database_connectivity
    end

    def status
      ::Mongoid.default_client.database_names.any?
      GovukHealthcheck::OK
    rescue StandardError
      GovukHealthcheck::CRITICAL
    end
  end
end

Version data entries

105 entries across 105 versions & 1 rubygems

Version Path
govuk_app_config-9.16.1 lib/govuk_app_config/govuk_healthcheck/mongoid.rb
govuk_app_config-9.16.0 lib/govuk_app_config/govuk_healthcheck/mongoid.rb
govuk_app_config-9.15.8 lib/govuk_app_config/govuk_healthcheck/mongoid.rb
govuk_app_config-9.15.7 lib/govuk_app_config/govuk_healthcheck/mongoid.rb
govuk_app_config-9.15.6 lib/govuk_app_config/govuk_healthcheck/mongoid.rb
govuk_app_config-9.15.5 lib/govuk_app_config/govuk_healthcheck/mongoid.rb
govuk_app_config-9.15.4 lib/govuk_app_config/govuk_healthcheck/mongoid.rb
govuk_app_config-9.15.3 lib/govuk_app_config/govuk_healthcheck/mongoid.rb
govuk_app_config-9.15.2 lib/govuk_app_config/govuk_healthcheck/mongoid.rb
govuk_app_config-9.15.1 lib/govuk_app_config/govuk_healthcheck/mongoid.rb
govuk_app_config-9.15.0 lib/govuk_app_config/govuk_healthcheck/mongoid.rb
govuk_app_config-9.14.6 lib/govuk_app_config/govuk_healthcheck/mongoid.rb
govuk_app_config-9.14.5 lib/govuk_app_config/govuk_healthcheck/mongoid.rb
govuk_app_config-9.14.4 lib/govuk_app_config/govuk_healthcheck/mongoid.rb
govuk_app_config-9.14.3 lib/govuk_app_config/govuk_healthcheck/mongoid.rb
govuk_app_config-9.14.2 lib/govuk_app_config/govuk_healthcheck/mongoid.rb
govuk_app_config-9.14.1 lib/govuk_app_config/govuk_healthcheck/mongoid.rb
govuk_app_config-9.14.0 lib/govuk_app_config/govuk_healthcheck/mongoid.rb
govuk_app_config-9.13.1 lib/govuk_app_config/govuk_healthcheck/mongoid.rb
govuk_app_config-9.13.0 lib/govuk_app_config/govuk_healthcheck/mongoid.rb