Puppet Function: to_toml

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

Summary

DEPRECATED. Use the namespaced function [`stdlib::to_toml`](#stdlibto_toml) instead.

Overview

to_toml(Any *$args)Any

Parameters:

  • *args (Any)

Returns:

  • (Any)


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

Puppet::Functions.create_function(:to_toml) do
  dispatch :deprecation_gen do
    repeated_param 'Any', :args
  end
  def deprecation_gen(*args)
    call_function('deprecation', 'to_toml', 'This function is deprecated, please use stdlib::to_toml instead.', false)
    call_function('stdlib::to_toml', *args)
  end
end