Class: Spill::Collectors::LocalGit
- Inherits:
-
Object
- Object
- Spill::Collectors::LocalGit
- Defined in:
- lib/spill/collectors/local_git.rb
Constant Summary collapse
- SEP =
"\x1f"
Instance Method Summary collapse
- #collect(window:) ⇒ Object
-
#initialize(repo_paths:, author: nil) ⇒ LocalGit
constructor
A new instance of LocalGit.
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 = 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 |