class AgileNotifier::Git::Repository

Public Class Methods

new(repo) click to toggle source
# File lib/agile_notifier/git.rb, line 26
def initialize(repo)
  @repo = repo
end

Public Instance Methods

get_committer_of_a_commit(revision) click to toggle source
# File lib/agile_notifier/git.rb, line 30
def get_committer_of_a_commit(revision)
  go_to_repo = "cd #{@repo}"
  show_author_name = "git show #{revision} --pretty=format:%an | head -1"
  cmd = Git.combine_commands(go_to_repo, show_author_name)
  Git.run_command(cmd).chomp
end