File: merge.rb

package info (click to toggle)
puppet-module-puppetlabs-stdlib 9.4.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,448 kB
  • sloc: ruby: 3,522; sh: 46; makefile: 2
file content (15 lines) | stat: -rw-r--r-- 589 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# frozen_string_literal: true

# THIS FILE WAS GENERATED BY `rake regenerate_unamespaced_shims`

# @summary DEPRECATED.  Use the namespaced function [`stdlib::merge`](#stdlibmerge) instead.
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