Class: Puppet::Pops::UnconstrainedDeepMergeStrategy

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

Overview

Same as DeepMergeStrategy but without constraint on valid merge options (needed for backward compatibility with Hiera v3)

Direct Known Subclasses

ReverseDeepMergeStrategy

Constant Summary

Constants inherited from DeepMergeStrategy

DeepMergeStrategy::INSTANCE

Constants inherited from MergeStrategy

MergeStrategy::NOT_FOUND

Class Method Summary collapse

Methods inherited from DeepMergeStrategy

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



407
408
409
# File 'lib/puppet/pops/merge_strategy.rb', line 407

def self.key
  :unconstrained_deep
end

.options_tTypes::PAnyType

Returns the puppet type used when validating the options hash.

Returns:

  • (Types::PAnyType)

    the puppet type used when validating the options hash



412
413
414
# File 'lib/puppet/pops/merge_strategy.rb', line 412

def self.options_t
  @options_t ||= Types::TypeParser.singleton.parse('Hash[String[1],Any]')
end