Class: ClaudeOnRails::ProjectAnalyzer

Inherits:
Object
  • Object
show all
Defined in:
lib/claude_on_rails/project_analyzer.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(root_path) ⇒ ProjectAnalyzer

Returns a new instance of ProjectAnalyzer.



7
8
9
# File 'lib/claude_on_rails/project_analyzer.rb', line 7

def initialize(root_path)
  @root_path = root_path
end

Instance Attribute Details

#root_pathObject (readonly)

Returns the value of attribute root_path.



5
6
7
# File 'lib/claude_on_rails/project_analyzer.rb', line 5

def root_path
  @root_path
end

Instance Method Details

#analyzeObject



11
12
13
14
15
16
17
18
19
20
21
22
23
24
# File 'lib/claude_on_rails/project_analyzer.rb', line 11

def analyze
  {
    api_only: api_only?,
    test_framework: detect_test_framework,
    has_graphql: graphql?,
    has_turbo: turbo?,
    has_devise: devise?,
    has_sidekiq: sidekiq?,
    javascript_framework: detect_javascript_framework,
    database: detect_database,
    deployment: detect_deployment_method,
    custom_patterns: detect_custom_patterns
  }
end