Class: Necropsy::Bench::ReleaseAudit::GitSnapshot

Inherits:
Object
  • Object
show all
Defined in:
lib/necropsy/bench/release_audit/git_snapshot.rb

Instance Method Summary collapse

Constructor Details

#initialize(root:, git_ref:, reports_path:) ⇒ GitSnapshot

Returns a new instance of GitSnapshot.



10
11
12
13
14
# File 'lib/necropsy/bench/release_audit/git_snapshot.rb', line 10

def initialize(root:, git_ref:, reports_path:)
  @root = root
  @git_ref = git_ref
  @reports_path = reports_path
end

Instance Method Details

#reports(corpora) ⇒ Object



16
17
18
# File 'lib/necropsy/bench/release_audit/git_snapshot.rb', line 16

def reports(corpora)
  corpora.to_h { |corpus| [corpus, report(corpus)] }
end