Module: Babygitter

Defined in:
lib/fotoverite_babygitter.rb,
lib/babygitter/errorclasses.rb,
lib/babygitter/repo_analyzer.rb,
lib/babygitter/report_generator.rb,
lib/babygitter/repo_analyzer/author.rb,
lib/babygitter/repo_analyzer/branch.rb,
lib/babygitter/report_generator/options.rb,
lib/babygitter/output_helpers/graph_output.rb,
lib/babygitter/statistics/date_time_arrays.rb,
lib/babygitter/report_generator/application.rb,
lib/babygitter/statistics/folder_analysis_methods.rb

Overview

This module holds basic settings for the html generator. TODO figure out if this should instead be a class

Defined Under Namespace

Modules: DateTimeArrays, Errorclasses, FolderAnalysisMethods, GraphOutput Classes: RepoAnalyzer, ReportGenerator

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

Customizable options



46
47
48
# File 'lib/fotoverite_babygitter.rb', line 46

def additional_links
  @additional_links
end

.folder_levelsObject

Customizable options



46
47
48
# File 'lib/fotoverite_babygitter.rb', line 46

def folder_levels
  @folder_levels
end

.image_assets_pathObject

Customizable options



46
47
48
# File 'lib/fotoverite_babygitter.rb', line 46

def image_assets_path
  @image_assets_path
end

.instructionsObject

Customizable options



46
47
48
# File 'lib/fotoverite_babygitter.rb', line 46

def instructions
  @instructions
end

.jqueryObject

Customizable options



46
47
48
# File 'lib/fotoverite_babygitter.rb', line 46

def jquery
  @jquery
end

.marked_foldersObject

Customizable options



46
47
48
# File 'lib/fotoverite_babygitter.rb', line 46

def marked_folders
  @marked_folders
end

.output_graphsObject

Customizable options



46
47
48
# File 'lib/fotoverite_babygitter.rb', line 46

def output_graphs
  @output_graphs
end

.repo_pathObject

Customizable options



46
47
48
# File 'lib/fotoverite_babygitter.rb', line 46

def repo_path
  @repo_path
end

.stylesheetObject

Customizable options



46
47
48
# File 'lib/fotoverite_babygitter.rb', line 46

def stylesheet
  @stylesheet
end

.templateObject

Customizable options



46
47
48
# File 'lib/fotoverite_babygitter.rb', line 46

def template
  @template
end

.use_whitelistObject

Customizable options



46
47
48
# File 'lib/fotoverite_babygitter.rb', line 46

def use_whitelist
  @use_whitelist
end

Class Method Details

.blacklisted_folders=(marked_folders) ⇒ Object

checks to make sure that this option is an array durring writing to the blacklisted_folders option

Raises:

  • (ArgumentError)


50
51
52
53
# File 'lib/fotoverite_babygitter.rb', line 50

def blacklisted_folders=(marked_folders)
  raise ArgumentError, "must be an array" unless blacklisted_folders.is_a?(Array)
  @blacklisted_folders = blacklisted_folders
end

.report_file_pathObject

creates path for the generated html



62
63
64
# File 'lib/fotoverite_babygitter.rb', line 62

def report_file_path
  "#{@repo_path.gsub(/\/$/, "")}" + "/log/babygitter_report"
end