Module: Diffend::Config::Fetcher
- Defined in:
- lib/diffend/config/fetcher.rb
Overview
Class responsible for fetching the config from .diffend.yml
Class Method Summary collapse
-
.call(build_path) ⇒ OpenStruct
Open struct with config details.
Class Method Details
.call(build_path) ⇒ OpenStruct
Returns open struct with config details.
16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/diffend/config/fetcher.rb', line 16 def call(build_path) OpenStruct.new( YAML.safe_load( ERB.new( File.read( FileFinder.call(build_path) ) ).result ).merge(build_path: build_path) ) end |