Class: MetricsGenerator

Inherits:
Object
  • Object
show all
Defined in:
lib/codespicuous/metrics_generator.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#commit_historyObject

Returns the value of attribute commit_history.



5
6
7
# File 'lib/codespicuous/metrics_generator.rb', line 5

def commit_history
  @commit_history
end

#configObject

Returns the value of attribute config.



5
6
7
# File 'lib/codespicuous/metrics_generator.rb', line 5

def config
  @config
end

Instance Method Details

#generate(config, commit_history) ⇒ Object



7
8
9
10
11
12
# File 'lib/codespicuous/metrics_generator.rb', line 7

def generate(config, commit_history)
  @commit_history = commit_history
  @config = config
  generate_daniel
  generate_csv_files
end

#generate_csv_filesObject



19
20
21
22
# File 'lib/codespicuous/metrics_generator.rb', line 19

def generate_csv_files
  csv = MetricsGeneratorCsvFiles.new(@config, @commit_history)
  csv.generate
end

#generate_danielObject



14
15
16
17
# File 'lib/codespicuous/metrics_generator.rb', line 14

def generate_daniel
  daniel = MetricsGeneratorDaniel.new(@config, @commit_history)
  daniel.generate
end