File: env_function.erb

package info (click to toggle)
puppet-agent 8.10.0-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 27,392 kB
  • sloc: ruby: 286,820; sh: 492; xml: 116; makefile: 88; cs: 68
file content (5 lines) | stat: -rw-r--r-- 194 bytes parent folder | download
1
2
3
4
5
Puppet::Functions.create_function(:'environment::f<%= n %>') do
  def f<%= n %>
    <% if n > 0 %>call_function(:'environment::f<%= n-1 %>')<% else %>'environment::f<%= n %>'<% end %>
  end
end