Added scaffolding for an unload container function

This commit is contained in:
Charles Care
2019-11-17 19:40:31 +00:00
parent 305b01a164
commit 7d58035a04
2 changed files with 5 additions and 0 deletions

View File

@@ -18,6 +18,8 @@ module Pipeline::Rpc
puts "dropping response"
else
req = entry[:req]
resp = msg.parsed_msg
resp.delete("return_address")
req.send_result(msg.parsed_msg)
unregister(addr)
end

View File

@@ -226,6 +226,9 @@ module Pipeline::Rpc
elsif req.parsed_msg["action"] == "deploy_container_version"
new_version = req.parsed_msg["new_version"]
config.add_container_version!(channel, track_slug, new_version)
elsif req.parsed_msg["action"] == "unload_container_version"
new_version = req.parsed_msg["new_version"]
req.send_error({ msg: "action not yet implemented" })
else
req.send_error({ msg: "action unknown" })
return