lib/soloist/royal_crown.rb in soloist-1.0.0 vs lib/soloist/royal_crown.rb in soloist-1.0.1
- old
+ new
@@ -39,10 +39,10 @@
new(read_config(file_path).merge("path" => file_path))
end
def self.read_config(yaml_file)
content = File.read(yaml_file)
- YAML.load(content).tap do |hash|
+ YAML.load(ERB.new(content).result).tap do |hash|
nilable_properties.each do |key|
hash.delete(key) if hash[key].nil?
end if hash
end || {}
end