Class: Automux::Library::YamlParser

Inherits:
Object
  • Object
show all
Defined in:
lib/automux/library/yaml_parser.rb

Overview

:nodoc:

Class Method Summary collapse

Class Method Details

.load_file(file_path, parsed_options) ⇒ Object



7
8
9
10
11
# File 'lib/automux/library/yaml_parser.rb', line 7

def load_file(file_path, parsed_options)
  data_string = File.read(file_path)
  opts_replaced_string = replace_opts(data_string, parsed_options)
  YAML.load(opts_replaced_string)
end