Puppet Function: role::translate_slash

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

Overview

role::translate_slash(String $role)String

Translates all (repeated) slashes in a role to ‘::’

Parameters:

  • role (String)

    Role to perform translate on.

Returns:

  • (String)

    Translated role.



5
6
7
# File 'functions/translate_slash.pp', line 5

function role::translate_slash(String $role) >> String {
  role::translate_with_map($role, {'[/]+' => '::'})
}