Class: Spill::Collectors::LocalGit

Inherits:
Object
  • Object
show all
Defined in:
lib/spill/collectors/local_git.rb

Constant Summary collapse

SEP =
"\x1f"
RECORD_SEP =
"\x1e"

Instance Method Summary collapse

Constructor Details

#initialize(repo_paths:, author: nil) ⇒ LocalGit

Returns a new instance of LocalGit.



10
11
12
13
# File 'lib/spill/collectors/local_git.rb', line 10

def initialize(repo_paths:, author: nil)
  @repo_paths = repo_paths
  @author = author
end

Instance Method Details

#collect(window:) ⇒ Object



15
16
17
# File 'lib/spill/collectors/local_git.rb', line 15

def collect(window:)
  @repo_paths.flat_map { |path| repo_events(path, window) }
end