git.lirion.de

Of git, get, and gud

summaryrefslogtreecommitdiffstats
path: root/scripts/code_manager_config_version.rb
blob: 7ed5680e7fb9dfc56e6076ff7e04a5911bc5ca4c (plain)
1
2
3
4
5
6
7
8
9
require 'json'

environmentpath = ARGV[0]
environment     = ARGV[1]

r10k_deploy_file_path = File.join(environmentpath, environment, '.r10k-deploy.json')

#output the sha1 from the control-repo
puts JSON.parse(File.read(r10k_deploy_file_path))['signature']