Puppet Function: role::translate_double_underscores
- Defined in:
- functions/translate_double_underscores.pp
- Function type:
- Puppet Language
Overview
Translates all double (or more) underscores in a role to ‘::’
5 6 7 |
# File 'functions/translate_double_underscores.pp', line 5 function role::translate_double_underscores(String $role) >> String { role::translate_with_map($role, {/_[_]+/ => '::' }) } |