Class: Heroku::Bartender::Log

Inherits:
Object
  • Object
show all
Defined in:
lib/heroku/bartender/log.rb

Class Method Summary collapse

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(options = {})
  options[:page] ||= 0
  offset = options[:max_per_page].to_i * options[:page].to_i
  Grit::Repo.new('.').commits('master',
                              options[:max_per_page],
                              offset
                              )
end