Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F8394682
get_docker_plugin_install_flags.rb
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
659 B
Subscribers
None
get_docker_plugin_install_flags.rb
View Options
# frozen_string_literal: true
def
get_docker_plugin_install_flags
(
args
)
flags
=
[]
flags
<<
"--alias
#{
args
[
'plugin_alias'
]
}
"
if
args
[
'plugin_alias'
]
&&
args
[
'plugin_alias'
].
to_s
!=
'undef'
flags
<<
'--disable'
if
args
[
'disable_on_install'
]
==
true
flags
<<
'--disable-content-trust'
if
args
[
'disable_content_trust'
]
==
true
flags
<<
'--grant-all-permissions'
if
args
[
'grant_all_permissions'
]
==
true
flags
<<
"'
#{
args
[
'plugin_name'
]
}
'"
if
args
[
'plugin_name'
]
&&
args
[
'plugin_name'
].
to_s
!=
'undef'
if
args
[
'settings'
].
is_a?
Array
args
[
'settings'
].
each
do
|
setting
|
flags
<<
setting
.
to_s
end
end
flags
.
flatten
.
join
(
' '
)
end
File Metadata
Details
Attached
Mime Type
text/x-ruby
Expires
Jun 4 2025, 7:27 PM (9 w, 5 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3356870
Attached To
R205 puppet-puppetlabs-docker
Event Timeline
Log In to Comment