Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9125626
sanitised_name.pp
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
224 B
Subscribers
None
sanitised_name.pp
View Options
# == Function: docker::sanitised_name
#
# Function to sanitise container name.
#
# === Parameters
#
# [*name*]
# Name to sanitise
#
function
docker
::
sanitised_name
(
$name){
regsubst
(
$name,
'[^0-9A-Za-z.\-_]'
,
'-'
,
'G'
)
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Jun 21, 9:08 PM (4 w, 6 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3357071
Attached To
R205 puppet-puppetlabs-docker
Event Timeline
Log In to Comment