Class: Spill::Collectors::LocalGit

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

Constant Summary collapse

SEP =
"\x1f"

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of LocalGit.



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

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

Instance Method Details

#collect(window:) ⇒ Object



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

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