Class: RepoAnalyzer::ExtractProjectInfoJob

Inherits:
ApplicationJob
  • Object
show all
Defined in:
app/jobs/repo_analyzer/extract_project_info_job.rb

Instance Method Summary collapse

Instance Method Details

#perform(repo_name) ⇒ Object



3
4
5
6
7
8
9
10
11
12
13
# File 'app/jobs/repo_analyzer/extract_project_info_job.rb', line 3

def perform(repo_name)
  project_info = {}
  bridge = RepoAnalyzer::ProjectDataBridge.new(repo_name)

  for_each_extractor do |extractor|
    extracted_data = extractor.new(bridge).extract
    project_info.merge!(extracted_data)
  end

  project_info
end