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 =
self.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

Methods inherited from MergeStrategy

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

Constructor Details

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

Class Method Details

.keyObject



424
425
426
# File 'lib/puppet/pops/merge_strategy.rb', line 424

def self.key
  :reverse_deep
end

Instance Method Details

#checked_merge(e1, e2) ⇒ Object



428
429
430
# File 'lib/puppet/pops/merge_strategy.rb', line 428

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