Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9125997
get_docker_stack_flags.rb
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
704 B
Subscribers
None
get_docker_stack_flags.rb
View Options
def
get_docker_stack_flags
(
args
)
flags
=
[]
if
args
[
'bundle_file'
]
&&
args
[
'bundle_file'
].
to_s
!=
'undef'
flags
<<
"--bundle-file '
#{
args
[
'bundle_file'
]
}
'"
end
if
args
[
'compose_files'
]
&&
args
[
'compose_files'
].
to_s
!=
'undef'
args
[
'compose_files'
].
each
do
|
file
|
flags
<<
"--compose-file '
#{
file
}
'"
end
end
if
args
[
'resolve_image'
]
&&
args
[
'resolve_image'
].
to_s
!=
'undef'
flags
<<
"--resolve-image '
#{
args
[
'resolve_image'
]
}
'"
end
if
args
[
'prune'
]
&&
args
[
'prune'
].
to_s
!=
'undef'
flags
<<
'--prune'
end
if
args
[
'with_registry_auth'
]
&&
args
[
'with_registry_auth'
].
to_s
!=
'undef'
flags
<<
'--with-registry-auth'
end
flags
.
flatten
.
join
(
' '
)
end
File Metadata
Details
Attached
Mime Type
text/x-ruby
Expires
Jun 21 2025, 9:34 PM (4 w, 2 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3390469
Attached To
R205 puppet-puppetlabs-docker
Event Timeline
Log In to Comment