Created
January 1, 2011 00:29
-
-
Save robmerrell/761454 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
begin | |
# group info for the commit | |
repo_info = { | |
:repo => repo_name, | |
:author => commit.author, | |
:committer_name => commit.committer, | |
:date => commit.commit_timestamp, | |
:message => commit.message, | |
:diff_patch => commit.diff, | |
:diff_files => commit.diff_files, | |
:slug => "slug" | |
} | |
# store log info on IndexTank | |
repos_index.document(commit.sha).add(repo_info, :variables => { 0 => commit.commit_timestamp }) | |
rescue | |
puts "failed to store: #{commit.sha}" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment