mirror of
https://github.com/genebean/dots.git
synced 2026-03-27 17:37:43 -04:00
10 lines
278 B
Ruby
Executable file
10 lines
278 B
Ruby
Executable file
#!/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']
|