Class: Julewire::Core::Diagnostics::Doctor
- Inherits:
-
Object
- Object
- Julewire::Core::Diagnostics::Doctor
- Defined in:
- lib/julewire/core/diagnostics/doctor.rb
Class Method Summary collapse
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(runtime) ⇒ Doctor
constructor
A new instance of Doctor.
Constructor Details
#initialize(runtime) ⇒ Doctor
Returns a new instance of Doctor.
13 14 15 |
# File 'lib/julewire/core/diagnostics/doctor.rb', line 13 def initialize(runtime) @runtime = runtime end |
Class Method Details
.call(runtime) ⇒ Object
8 9 10 |
# File 'lib/julewire/core/diagnostics/doctor.rb', line 8 def call(runtime) new(runtime).call end |
Instance Method Details
#call ⇒ Object
17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'lib/julewire/core/diagnostics/doctor.rb', line 17 def call health = @runtime.health config = @runtime.config { status: health.fetch(:status), runtime: runtime_info(health, config), pipeline: pipeline_info(health.fetch(:pipeline)), integrations: integration_info(health.fetch(:integrations)), process_integrations: integration_info(health.fetch(:process_integrations)), warnings: warnings(health) } end |