Class: Puppet::Pops::ReverseDeepMergeStrategy

Inherits:
UnconstrainedDeepMergeStrategy show all
Defined in:
lib/puppet/pops/merge_strategy.rb

Overview

Same as UnconstrainedDeepMergeStrategy but with reverse priority of merged elements. (needed for backward compatibility with Hiera v3)

Constant Summary collapse

INSTANCE =
new(EMPTY_HASH)

Constants inherited from MergeStrategy

MergeStrategy::NOT_FOUND

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from UnconstrainedDeepMergeStrategy

options_t

Methods inherited from DeepMergeStrategy

#deep_clone, options_t

Methods inherited from MergeStrategy

add_strategy, #configuration, #convert_value, #initialize, #lookup, merge, #merge, #merge_lookup, #merge_single, #options, options_t, strategy, strategy_keys

Constructor Details

This class inherits a constructor from Puppet::Pops::MergeStrategy

Class Method Details

.keyObject



437
438
439
# File 'lib/puppet/pops/merge_strategy.rb', line 437

def self.key
  :reverse_deep
end

Instance Method Details

#checked_merge(e1, e2) ⇒ Object



441
442
443
# File 'lib/puppet/pops/merge_strategy.rb', line 441

def checked_merge(e1, e2)
  super(e2, e1)
end