Deploys mention the released service@version

Less work for broadcast commands to take on.

Also fixes a bug where rollback on hosts without a running container
would stop the container they had just started.
This commit is contained in:
Jeremy Daer
2023-03-22 10:15:12 -07:00
committed by Jeremy Daer
parent 83dc82661b
commit 53d7f9d528
4 changed files with 37 additions and 8 deletions

View File

@@ -43,4 +43,9 @@ module Mrsk::Utils
def escape_shell_value(value)
value.to_s.dump.gsub(/`/, '\\\\`')
end
# Abbreviate a git revhash for concise display
def abbreviate_version(version)
version[0...7] if version
end
end