Sha256: 6d7ef8ffa6cac993eeb01bcee4318a0de0263274f19a5079b64a38e7024c01df

Contents?: true

Size: 371 Bytes

Versions: 30

Compression:

Stored size: 371 Bytes

Contents

module MnoEnterprise
  class HealthCheck
    # Check API connection with Mno-Hub
    # any code that returns blank on success and non blank string upon failure
    def self.perform_mno_hub_check
      # TODO: less expensive test
      if MnoEnterprise::App.first
        ''
      else
        'MNO-HUB'
      end
    rescue => e
      "MNO-HUB: #{e}. "
    end
  end
end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
mno-enterprise-api-3.4.0 app/models/mno_enterprise/health_check.rb
mno-enterprise-api-3.3.3 app/models/mno_enterprise/health_check.rb
mno-enterprise-api-3.3.2 app/models/mno_enterprise/health_check.rb
mno-enterprise-api-3.2.1 app/models/mno_enterprise/health_check.rb
mno-enterprise-api-3.3.1 app/models/mno_enterprise/health_check.rb
mno-enterprise-api-3.3.0 app/models/mno_enterprise/health_check.rb
mno-enterprise-api-3.2.0 app/models/mno_enterprise/health_check.rb
mno-enterprise-api-3.1.4 app/models/mno_enterprise/health_check.rb
mno-enterprise-api-3.0.7 app/models/mno_enterprise/health_check.rb
mno-enterprise-api-2.0.9 app/models/mno_enterprise/health_check.rb
mno-enterprise-api-3.1.3 app/models/mno_enterprise/health_check.rb
mno-enterprise-api-3.0.6 app/models/mno_enterprise/health_check.rb
mno-enterprise-api-2.0.8 app/models/mno_enterprise/health_check.rb
mno-enterprise-api-3.1.2 app/models/mno_enterprise/health_check.rb
mno-enterprise-api-3.0.5 app/models/mno_enterprise/health_check.rb
mno-enterprise-api-2.0.7 app/models/mno_enterprise/health_check.rb
mno-enterprise-api-2.0.6 app/models/mno_enterprise/health_check.rb
mno-enterprise-api-2.0.5 app/models/mno_enterprise/health_check.rb
mno-enterprise-api-3.1.1 app/models/mno_enterprise/health_check.rb
mno-enterprise-api-3.0.4 app/models/mno_enterprise/health_check.rb