Puppet Function: to_yaml

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

Overview

to_yaml(Any $data)Any

Parameters:

  • data (Any)

Returns:

  • (Any)


13
14
15
16
17
18
19
20
21
# File 'lib/puppet/functions/to_yaml.rb', line 13

Puppet::Functions.create_function(:to_yaml) do
  dispatch :to_yaml do
    param 'Any', :data
  end

  def to_yaml(data)
    data.to_yaml
  end
end