Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F8392962
swarm_update.rb
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
409 B
Subscribers
None
swarm_update.rb
View Options
#!/opt/puppetlabs/puppet/bin/ruby
# frozen_string_literal: true
require
'json'
require
'open3'
require
'puppet'
params
=
JSON
.
parse
(
STDIN
.
read
)
image
=
params
[
'image'
]
service
=
params
[
'service'
]
begin
puts
'Deprecated: use docker::service_update instead'
result
=
service_update
(
image
,
service
)
puts
result
exit
0
rescue
Puppet
::
Error
=>
e
puts
(
status
:
'failure'
,
error
:
e
.
message
)
exit
1
end
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Jun 4 2025, 7:05 PM (10 w, 1 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3215243
Attached To
R205 puppet-puppetlabs-docker
Event Timeline
Log In to Comment