Class: GitHubChangelogGenerator::ChangelogGenerator
- Inherits:
-
Object
- Object
- GitHubChangelogGenerator::ChangelogGenerator
- Defined in:
- lib/github_changelog_generator.rb
Overview
Main class and entry point for this script.
Instance Method Summary collapse
-
#initialize ⇒ Object
constructor
Class, responsible for whole change log generation cycle.
-
#run ⇒ Object
The entry point of this script to generate change log.
Constructor Details
#initialize ⇒ Object
Class, responsible for whole change log generation cycle
26 27 28 29 |
# File 'lib/github_changelog_generator.rb', line 26 def initialize = Parser. @generator = Generator.new end |
Instance Method Details
#run ⇒ Object
The entry point of this script to generate change log
33 34 35 36 37 38 39 40 |
# File 'lib/github_changelog_generator.rb', line 33 def run log = @generator.compound_changelog output_filename = ([:output]).to_s File.open(output_filename, "w") { |file| file.write(log) } puts "Done!" puts "Generated log placed in #{Dir.pwd}/#{output_filename}" end |