Class: Renogen::ExtractionStratagies::YamlFile::Provider

Inherits:
Base
  • Object
show all
Defined in:
lib/renogen/extraction_stratagies/yaml_file/provider.rb

Overview

Reads change data from files in configured directory

Instance Method Summary collapse

Methods inherited from Base

register

Constructor Details

#initialize(options = {}) ⇒ Provider

Returns a new instance of Provider.



10
11
12
13
# File 'lib/renogen/extraction_stratagies/yaml_file/provider.rb', line 10

def initialize(options={})
  super
  @yaml_parser = Parser.new(options)
end

Instance Method Details

#extractChangeLog::Model

Parse changes from source

Returns:



18
19
20
# File 'lib/renogen/extraction_stratagies/yaml_file/provider.rb', line 18

def extract
  @yaml_parser.parse!
end