Class: TalkToYourApp::Plugins::Health::Plugin
- Inherits:
-
TalkToYourApp::Plugin
- Object
- TalkToYourApp::Plugin
- TalkToYourApp::Plugins::Health::Plugin
- Defined in:
- lib/talk_to_your_app/plugins/health/plugin.rb
Overview
The Health plugin exposes the operator-registered checks via two tools: list and run. No connection or soft-dependency gem is required — checks own whatever resources they touch.
Class Method Summary collapse
-
.tools(*classes) ⇒ Object
Load app/talk_to_your_app/health/ (one Health.register per file) when the tool list is read — once, at rack-app build / boot, mirroring the custom_tools plugin.
Methods inherited from TalkToYourApp::Plugin
log_level, requires_connection, requires_gem, validate_enablement!
Class Method Details
.tools(*classes) ⇒ Object
Load app/talk_to_your_app/health/ (one Health.register per file) when the tool list is read — once, at rack-app build / boot, mirroring the custom_tools plugin. This surfaces a broken health file at deploy rather than on the first health.run, and avoids re-globbing the directory (and re-logging a failed load) on every tool call.
22 23 24 25 |
# File 'lib/talk_to_your_app/plugins/health/plugin.rb', line 22 def self.tools(*classes) TalkToYourApp.require_app_dir("health") if classes.empty? super end |