Class: RailsAiContext::BootManager::Result
- Inherits:
-
Struct
- Object
- Struct
- RailsAiContext::BootManager::Result
- Defined in:
- lib/rails_ai_context/boot_manager.rb
Instance Attribute Summary collapse
-
#error ⇒ Object
Returns the value of attribute error.
-
#status ⇒ Object
Returns the value of attribute status.
Instance Method Summary collapse
- #booted? ⇒ Boolean
-
#failure_summary ⇒ Object
One-line summary safe to relay to an AI client or a terminal.
Instance Attribute Details
#error ⇒ Object
Returns the value of attribute error
30 31 32 |
# File 'lib/rails_ai_context/boot_manager.rb', line 30 def error @error end |
#status ⇒ Object
Returns the value of attribute status
30 31 32 |
# File 'lib/rails_ai_context/boot_manager.rb', line 30 def status @status end |
Instance Method Details
#booted? ⇒ Boolean
31 32 33 |
# File 'lib/rails_ai_context/boot_manager.rb', line 31 def booted? status == :booted end |
#failure_summary ⇒ Object
One-line summary safe to relay to an AI client or a terminal.
36 37 38 39 40 |
# File 'lib/rails_ai_context/boot_manager.rb', line 36 def failure_summary return nil if booted? "#{error.class}: #{error..to_s.lines.first&.strip}" end |