class PairingMatrix::LocalCommitReader
Public Class Methods
new(config)
click to toggle source
Calls superclass method
PairingMatrix::CommitReader::new
# File lib/pairing_matrix/commit_readers/local_commit_reader.rb, line 6 def initialize(config) super(config) end
Protected Instance Methods
read(since)
click to toggle source
# File lib/pairing_matrix/commit_readers/local_commit_reader.rb, line 11 def read(since) commits = [] @config.repositories.each do |repo| Dir.chdir repo do commits << read_commits(since) end end commits.flatten end
Private Instance Methods
read_commits(since)
click to toggle source
# File lib/pairing_matrix/commit_readers/local_commit_reader.rb, line 22 def read_commits(since) `git log --oneline --after=\"#{since}\"`.split("\n") end