Reworked to use Ruby since its needed for Puppet

This commit is contained in:
Gene Liverman 2017-05-07 09:01:12 -07:00
parent bff34cde83
commit 4f0169d4fc
21 changed files with 73 additions and 38 deletions

View file

@ -0,0 +1,10 @@
#!/usr/bin/env 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']