Method: Datapimp::Configuration#apply_config_from_path
- Defined in:
- lib/datapimp/configuration.rb
#apply_config_from_path(path) ⇒ Object
160 161 162 163 164 165 |
# File 'lib/datapimp/configuration.rb', line 160 def apply_config_from_path(path) path = Pathname(path) parsed = JSON.parse(path.read) rescue {} applied_config.merge!(parsed) nil end |