Puppet Function: merge

Defined in:
lib/puppet/functions/merge.rb
Function type:
Ruby 4.x API

Summary

DEPRECATED. Use the namespaced function [`stdlib::merge`](#stdlibmerge) instead.

Overview

merge(Any *$args, Optional[Variant[Callable[2,2], Callable[3,3]]] &$block)Any

Parameters:

  • *args (Any)
  • &block (Optional[Variant[Callable[2,2], Callable[3,3]]])

Returns:

  • (Any)


6
7
8
9
10
11
12
13
14
15
# File 'lib/puppet/functions/merge.rb', line 6

Puppet::Functions.create_function(:merge) do
  dispatch :deprecation_gen do
    repeated_param 'Any', :args
    optional_block_param 'Variant[Callable[2,2], Callable[3,3]]', :block
  end
  def deprecation_gen(*args, &block)
    call_function('deprecation', 'merge', 'This function is deprecated, please use stdlib::merge instead.', false)
    call_function('stdlib::merge', *args, &block)
  end
end