Sha256: de90e92d70a9dab709bfc8bebb87513747e63bd9f930413e36da136fcccd3f3b
Contents?: true
Size: 693 Bytes
Versions: 5
Compression:
Stored size: 693 Bytes
Contents
require 'shipitron' require 'shipitron/consul_keys' module Shipitron module Server class UpdateDeployRef include Metaractor include ConsulKeys required :application required :docker_image before do configure_consul_client! end def call Logger.info "Updating deploy ref to #{docker_image.tag}" set_key!(key: deploy_ref_key, value: docker_image.tag) end private def application context.application end def docker_image context.docker_image end def deploy_ref_key fetch_key!(key: "shipitron/#{application}/deploy_ref_key") end end end end
Version data entries
5 entries across 5 versions & 1 rubygems