Puppet Function: collectd::indent

Defined in:
functions/indent.pp
Function type:
Puppet Language

Overview

collectd::indent(String $arg)String

Parameters:

  • arg (String)

Returns:

  • (String)


1
2
3
4
# File 'functions/indent.pp', line 1

function collectd::indent(String $arg) >> String {
  $body = regsubst($arg,  "\n(.)", "\n  \\1", 'G')
  "  ${body}"
}