Class: MnoEnterprise::HealthCheck
- Inherits:
-
Object
- Object
- MnoEnterprise::HealthCheck
- Defined in:
- app/models/mno_enterprise/health_check.rb
Class Method Summary collapse
-
.perform_mno_hub_check ⇒ Object
Check API connection with Mno-Hub any code that returns blank on success and non blank string upon failure.
Class Method Details
.perform_mno_hub_check ⇒ Object
Check API connection with Mno-Hub any code that returns blank on success and non blank string upon failure
5 6 7 8 9 10 11 12 13 14 |
# File 'app/models/mno_enterprise/health_check.rb', line 5 def self.perform_mno_hub_check # TODO: less expensive test if MnoEnterprise::App.first '' else 'MNO-HUB' end rescue => e "MNO-HUB: #{e}. " end |