Method: Fulmar::Domain::Model::Configuration#merge

Defined in:
lib/fulmar/domain/model/configuration.rb

#merge(other) ⇒ Object

Merge another configuration into the currently active one Useful for supplying a default configuration, as values are not overwritten. Hashes are merged.

Parameters:

  • other (Hash)


107
108
109
110
# File 'lib/fulmar/domain/model/configuration.rb', line 107

def merge(other)
  return unless @environment && @target
  @data[:environments][@environment][@target] = other.deep_merge(@data[:environments][@environment][@target])
end