Sha256: 8111dc52a0a9f3c2b0a969c43b705ede261d22294b57238c4703060ca768b639

Contents?: true

Size: 260 Bytes

Versions: 97

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

97 entries across 97 versions & 1 rubygems

Version Path
govuk_app_config-7.2.1 lib/govuk_app_config/govuk_healthcheck/mongoid.rb
govuk_app_config-7.2.0 lib/govuk_app_config/govuk_healthcheck/mongoid.rb
govuk_app_config-7.1.0 lib/govuk_app_config/govuk_healthcheck/mongoid.rb
govuk_app_config-7.0.0 lib/govuk_app_config/govuk_healthcheck/mongoid.rb
govuk_app_config-6.0.1 lib/govuk_app_config/govuk_healthcheck/mongoid.rb
govuk_app_config-6.0.0 lib/govuk_app_config/govuk_healthcheck/mongoid.rb
govuk_app_config-5.1.0 lib/govuk_app_config/govuk_healthcheck/mongoid.rb
govuk_app_config-5.0.0 lib/govuk_app_config/govuk_healthcheck/mongoid.rb
govuk_app_config-4.13.0 lib/govuk_app_config/govuk_healthcheck/mongoid.rb
govuk_app_config-4.12.0 lib/govuk_app_config/govuk_healthcheck/mongoid.rb
govuk_app_config-4.11.1 lib/govuk_app_config/govuk_healthcheck/mongoid.rb
govuk_app_config-4.11.0 lib/govuk_app_config/govuk_healthcheck/mongoid.rb
govuk_app_config-4.10.1 lib/govuk_app_config/govuk_healthcheck/mongoid.rb
govuk_app_config-4.10.0 lib/govuk_app_config/govuk_healthcheck/mongoid.rb
govuk_app_config-4.9.0 lib/govuk_app_config/govuk_healthcheck/mongoid.rb
govuk_app_config-4.8.0 lib/govuk_app_config/govuk_healthcheck/mongoid.rb
govuk_app_config-4.7.1 lib/govuk_app_config/govuk_healthcheck/mongoid.rb
govuk_app_config-4.7.0 lib/govuk_app_config/govuk_healthcheck/mongoid.rb
govuk_app_config-4.6.3 lib/govuk_app_config/govuk_healthcheck/mongoid.rb
govuk_app_config-4.6.2 lib/govuk_app_config/govuk_healthcheck/mongoid.rb