264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
|
# File 'lib/hubeye/server/server.rb', line 264
def call
socket = server.socket
tracker = server.session.tracker
output = ''
if @options[:details]
commit_list = []
tracker.keys.each do |repo|
commit = server.track(repo, :list => true)
commit_list << commit
end
commit_list.each do |c|
output << c.repo + "\n"
underline = '=' * c.repo.length
output << underline + "\n\n"
output << c.commit_message + "\n=> " +
c.committer_name + "\n"
output << "\n" unless c.repo == commit_list.last.repo
end
else
output << tracker.keys.join(', ')
end
output = "none" if output.empty?
socket.deliver output
end
|