Class: Heroku::Bartender::Log
- Inherits:
-
Object
- Object
- Heroku::Bartender::Log
- Defined in:
- lib/heroku/bartender/log.rb
Class Method Summary collapse
- .get_log(options = {}) ⇒ Object (also: generate_commits)
Class Method Details
.get_log(options = {}) ⇒ Object Also known as: generate_commits
6 7 8 9 10 11 12 13 |
# File 'lib/heroku/bartender/log.rb', line 6 def get_log( = {}) [:page] ||= 0 offset = [:max_per_page].to_i * [:page].to_i Grit::Repo.new('.').commits('master', [:max_per_page], offset ) end |