Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9125971
docker_exec_flags.rb
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
443 B
Subscribers
None
docker_exec_flags.rb
View Options
require
'shellwords'
module
Puppet::Parser::Functions
# Transforms a hash into a string of docker exec flags
newfunction
(
:docker_exec_flags
,
:type
=>
:rvalue
)
do
|
args
|
opts
=
args
[
0
]
||
{}
flags
=
[]
if
opts
[
'detach'
]
flags
<<
'--detach=true'
end
if
opts
[
'interactive'
]
flags
<<
'--interactive=true'
end
if
opts
[
'tty'
]
flags
<<
'--tty=true'
end
flags
.
flatten
.
join
(
" "
)
end
end
File Metadata
Details
Attached
Mime Type
text/x-ruby
Expires
Jun 21 2025, 9:33 PM (4 w, 2 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3430980
Attached To
R205 puppet-puppetlabs-docker
Event Timeline
Log In to Comment