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, 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


431
432
433
# File 'lib/puppet/pops/merge_strategy.rb', line 431

def self.key
  :reverse_deep
end

Instance Method Details

#checked_merge(e1, e2) ⇒ Object


435
436
437
# File 'lib/puppet/pops/merge_strategy.rb', line 435

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