Puppet Function: wmflib::resource::capitalize

Defined in:
modules/wmflib/functions/resource/capitalize.pp
Function type:
Puppet Language

Overview

wmflib::resource::capitalize(Wmflib::Resource::Type $resource)String[1]

SPDX-License-Identifier: Apache-2.0

Examples:

“foo::bar”.wmflib::resource_capitalize => Foo::Bar

Parameters:

  • resource (Wmflib::Resource::Type)

Returns:



5
6
7
8
9
# File 'modules/wmflib/functions/resource/capitalize.pp', line 5

function wmflib::resource::capitalize (
    Wmflib::Resource::Type $resource,
) >> String[1] {
    $resource.split('::').capitalize.join('::')
}