Class: Ragdoll::CLI::Health
- Inherits:
-
Object
- Object
- Ragdoll::CLI::Health
- Defined in:
- lib/ragdoll/cli/commands/health.rb
Instance Method Summary collapse
Instance Method Details
#call(_options) ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/ragdoll/cli/commands/health.rb', line 6 def call() client = StandaloneClient.new puts 'Checking system health' puts if client.healthy? puts 'System Status: ✓ Healthy' puts 'The Ragdoll system is operational.' else puts 'System Status: ✗ Unhealthy' puts 'There may be issues with the database or configuration.' end end |