Module: Twigg::Gatherer
- Defined in:
- lib/twigg/gatherer.rb
Class Method Summary collapse
Class Method Details
.gather(repositories_directory, days) ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 |
# File 'lib/twigg/gatherer.rb', line 3 def self.gather(repositories_directory, days) since = Time.now - days * 24 * 60 * 60 CommitSet.new.tap do |commit_set| RepoSet.new(repositories_directory).for_each_repo do |repo| repo.commits(since: since).each do |commit| commit_set << commit end end end end |