Class: RailsAiContext::Introspectors::DevOpsIntrospector
- Inherits:
-
Object
- Object
- RailsAiContext::Introspectors::DevOpsIntrospector
- Defined in:
- lib/rails_ai_context/introspectors/devops_introspector.rb
Overview
Discovers DevOps configuration: Puma, Procfile, health checks, Dockerfile, deployment tools.
Instance Attribute Summary collapse
-
#app ⇒ Object
readonly
Returns the value of attribute app.
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(app) ⇒ DevOpsIntrospector
constructor
A new instance of DevOpsIntrospector.
Constructor Details
#initialize(app) ⇒ DevOpsIntrospector
Returns a new instance of DevOpsIntrospector.
10 11 12 |
# File 'lib/rails_ai_context/introspectors/devops_introspector.rb', line 10 def initialize(app) @app = app end |
Instance Attribute Details
#app ⇒ Object (readonly)
Returns the value of attribute app.
8 9 10 |
# File 'lib/rails_ai_context/introspectors/devops_introspector.rb', line 8 def app @app end |
Instance Method Details
#call ⇒ Object
14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/rails_ai_context/introspectors/devops_introspector.rb', line 14 def call { puma: extract_puma_config, procfile: extract_procfile, health_check: detect_health_check, docker: extract_docker_info, deployment: detect_deployment_tool } rescue => e { error: e. } end |