56d0908db2
Update config_version.sh to read the r10k_deploy.json file if it exists. If it does not exist it will fall back to the existing logic
10 lines
257 B
Ruby
10 lines
257 B
Ruby
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']
|