class Git
Public Class Methods
new(matchers)
click to toggle source
# File bin/uniq-ci-report, line 51 def initialize(matchers) @matchers = matchers end
Public Instance Methods
last_comitter_name()
click to toggle source
# File bin/uniq-ci-report, line 55 def last_comitter_name map_comitter_name `git log -1 "--pretty=format:%an"` end
last_commit_sha()
click to toggle source
# File bin/uniq-ci-report, line 59 def last_commit_sha `git log -1 "--pretty=format:%h"` end
last_commit_time()
click to toggle source
# File bin/uniq-ci-report, line 63 def last_commit_time `git log -1 "--pretty=format:%ai"` end
Private Instance Methods
map_comitter_name(name)
click to toggle source
# File bin/uniq-ci-report, line 69 def map_comitter_name(name) @matchers.each { |regex, value| return value if regex.match(name) } return "Юзернейм" end