Puppet Function: wmflib::resource::export
- Defined in:
- modules/wmflib/functions/resource/export.pp
- Function type:
- Puppet Language
Overview
SPDX-License-Identifier: Apache-2.0
7 8 9 10 11 12 13 14 15 16 17 |
# File 'modules/wmflib/functions/resource/export.pp', line 7
function wmflib::resource::export (
Wmflib::Resource::Type $resource,
String[1] $resource_title,
String[1] $original_title,
Hash $parameters = {},
) {
# Currently the title prefix is not used but it may be useful in future
$title_prefix = 'wmflib::resource::export'
$_title = "${title_prefix}-${original_title}||${resource_title}"
create_resources("@@${resource.downcase}", { $_title => $parameters })
}
|