Class: RubyMaat::Generators::GitGenerator

Inherits:
BaseGenerator show all
Defined in:
lib/ruby_maat/generators/git_generator.rb

Constant Summary collapse

PRESETS =
{
  "git2-format" => {
    description: "Standard format for git2 parser (recommended)",
    options: {
      format: "git2",
      no_renames: true,
      all_branches: true
    }
  },
  "git-legacy" => {
    description: "Legacy format for git parser",
    options: {
      format: "legacy",
      no_renames: true,
      all_branches: false
    }
  },
  "recent-activity" => {
    description: "Last 3 months of activity",
    options: {
      format: "git2",
      since: (Date.today - 90).strftime("%Y-%m-%d"),
      no_renames: true,
      all_branches: true
    }
  },
  "last-year" => {
    description: "Last 12 months of activity",
    options: {
      format: "git2",
      since: (Date.today - 365).strftime("%Y-%m-%d"),
      no_renames: true,
      all_branches: true
    }
  },
  "full-history" => {
    description: "Complete repository history (may be large)",
    options: {
      format: "git2",
      no_renames: true,
      all_branches: true
    }
  }
}.freeze

Instance Attribute Summary

Attributes inherited from BaseGenerator

#options, #repository_path

Instance Method Summary collapse

Methods inherited from BaseGenerator

#generate_log, #initialize, #interactive_generate, #interactive_generate_for_analysis

Constructor Details

This class inherits a constructor from RubyMaat::Generators::BaseGenerator

Instance Method Details

#available_presetsObject



54
55
56
# File 'lib/ruby_maat/generators/git_generator.rb', line 54

def available_presets
  PRESETS
end