Class: JekyllRecker::Generators::Git

Inherits:
Jekyll::Generator
  • Object
show all
Includes:
Base
Defined in:
lib/jekyll_recker/generators.rb

Overview

Git Generator

Instance Attribute Summary

Attributes included from Base

#site

Instance Method Summary collapse

Methods included from Base

#data_file_target, #generate, #name

Methods included from Math

#average, #occurences, #total

Methods included from Logging

included, #info, #logger

Methods included from Date

#calculate_streaks, #slice_by_consecutive, #time_to_date

Instance Method Details

#crunchObject



85
86
87
88
89
# File 'lib/jekyll_recker/generators.rb', line 85

def crunch
  {
    'commit_count' => Shell.run('git rev-list --count master').chomp
  }
end