Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9124354
get_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
371 B
Subscribers
None
get_docker_exec_flags.rb
View Options
def
get_docker_exec_flags
(
args
)
flags
=
[]
if
args
[
'detach'
]
flags
<<
'--detach=true'
end
if
args
[
'interactive'
]
flags
<<
'--interactive=true'
end
if
args
[
'tty'
]
flags
<<
'--tty=true'
end
unless
args
[
'env'
].
empty?
args
[
'env'
].
each
do
|
namevaluepair
|
flags
<<
"--env
#{
namevaluepair
}
"
end
end
flags
.
flatten
.
join
(
' '
)
end
File Metadata
Details
Attached
Mime Type
text/x-ruby
Expires
Sat, Jun 21, 7:01 PM (2 w, 2 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3400016
Attached To
R205 puppet-puppetlabs-docker
Event Timeline
Log In to Comment