Class: RubyMaat::Generators::SvnGenerator

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

Constant Summary collapse

PRESETS =
{
  "standard" => {
    description: "Standard SVN XML log format",
    options: {
      verbose: true,
      xml: true
    }
  },
  "recent-activity" => {
    description: "Last 3 months of activity",
    options: {
      verbose: true,
      xml: true,
      since: (Date.today - 90).strftime("%Y%m%d")
    }
  },
  "last-year" => {
    description: "Last 12 months of activity",
    options: {
      verbose: true,
      xml: true,
      since: (Date.today - 365).strftime("%Y%m%d")
    }
  },
  "date-range" => {
    description: "Custom date range",
    options: {
      verbose: true,
      xml: true
    }
  },
  "revision-range" => {
    description: "Specific revision range",
    options: {
      verbose: true,
      xml: 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



49
50
51
# File 'lib/ruby_maat/generators/svn_generator.rb', line 49

def available_presets
  PRESETS
end