Class: Renogen::ExtractionStratagies::YamlFile::Parser
- Inherits:
-
Object
- Object
- Renogen::ExtractionStratagies::YamlFile::Parser
- Defined in:
- lib/renogen/extraction_stratagies/yaml_file/parser.rb
Overview
Reads change data from files in configured directory
Instance Attribute Summary collapse
-
#changelog ⇒ Object
readonly
Returns the value of attribute changelog.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Parser
constructor
A new instance of Parser.
- #parse! ⇒ ChangeLog::Model
Constructor Details
#initialize(options = {}) ⇒ Parser
9 10 11 12 |
# File 'lib/renogen/extraction_stratagies/yaml_file/parser.rb', line 9 def initialize(={}) @changelog = [:changelog] || ChangeLog::Model.new @yaml_file_reader = Reader.new(['changelog_path'], ) end |
Instance Attribute Details
#changelog ⇒ Object (readonly)
Returns the value of attribute changelog.
7 8 9 |
# File 'lib/renogen/extraction_stratagies/yaml_file/parser.rb', line 7 def changelog @changelog end |
Instance Method Details
#parse! ⇒ ChangeLog::Model
15 16 17 18 19 20 |
# File 'lib/renogen/extraction_stratagies/yaml_file/parser.rb', line 15 def parse! yaml_file_reader.each_yaml_file do |file| parse_file(file) end changelog end |