Add service_version and add running hook message

This commit is contained in:
Donal McBreen
2023-05-23 10:46:17 +01:00
parent 258887a451
commit 3b695ae127
7 changed files with 26 additions and 16 deletions

View File

@@ -84,6 +84,13 @@ module Mrsk::Utils
# Abbreviate a git revhash for concise display
def abbreviate_version(version)
version[0...7] if version
if version
# Don't abbreviate <sha>_uncommitted_<etc>
if version.include?("_")
version
else
version[0...7]
end
end
end
end