Class: Renogen::Generator
- Inherits:
-
Object
- Object
- Renogen::Generator
- Defined in:
- lib/renogen/generator.rb
Overview
This is the conductor of the application
Instance Attribute Summary collapse
-
#options ⇒ Object
Returns the value of attribute options.
-
#output_format ⇒ Object
Returns the value of attribute output_format.
-
#source ⇒ Object
Returns the value of attribute source.
-
#version ⇒ Object
Returns the value of attribute version.
Instance Method Summary collapse
-
#generate! ⇒ Object
Create the change log.
-
#initialize(version, source, output_format, options = {}) ⇒ Generator
constructor
A new instance of Generator.
Constructor Details
#initialize(version, source, output_format, options = {}) ⇒ Generator
Returns a new instance of Generator.
6 7 8 9 10 11 |
# File 'lib/renogen/generator.rb', line 6 def initialize(version, source, output_format, ={}) @version = version @source = source @output_format = output_format = end |
Instance Attribute Details
#options ⇒ Object
Returns the value of attribute options.
4 5 6 |
# File 'lib/renogen/generator.rb', line 4 def end |
#output_format ⇒ Object
Returns the value of attribute output_format.
4 5 6 |
# File 'lib/renogen/generator.rb', line 4 def output_format @output_format end |
#source ⇒ Object
Returns the value of attribute source.
4 5 6 |
# File 'lib/renogen/generator.rb', line 4 def source @source end |
#version ⇒ Object
Returns the value of attribute version.
4 5 6 |
# File 'lib/renogen/generator.rb', line 4 def version @version end |
Instance Method Details
#generate! ⇒ Object
Create the change log
14 15 16 17 18 19 20 |
# File 'lib/renogen/generator.rb', line 14 def generate! changelog = extraction_stratagy.extract changelog.version = version changelog.date = ['release_date'] writer.write!(changelog) end |