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



420
421
422
# File 'lib/puppet/pops/merge_strategy.rb', line 420

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



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

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