Merge pull request #3 from WhatsARanjit/production
Chicken-and-egg issue
This commit is contained in:
commit
a9d3be58aa
@ -1,4 +1,9 @@
|
|||||||
|
begin
|
||||||
require 'rugged'
|
require 'rugged'
|
||||||
|
rescue LoadError => e
|
||||||
|
t = Time.new
|
||||||
|
puts t.to_i
|
||||||
|
else
|
||||||
|
|
||||||
environmentpath = ARGV[0]
|
environmentpath = ARGV[0]
|
||||||
environment = ARGV[1]
|
environment = ARGV[1]
|
||||||
@ -15,3 +20,4 @@ commit = repo.lookup(head_sha)
|
|||||||
#add something to find the remote url
|
#add something to find the remote url
|
||||||
|
|
||||||
puts head_sha
|
puts head_sha
|
||||||
|
end
|
||||||
|
@ -3,5 +3,7 @@ if [ -e /opt/puppetlabs/server/pe_version ]
|
|||||||
then
|
then
|
||||||
/opt/puppetlabs/puppet/bin/ruby $1/$2/scripts/config_version.rb $1 $2
|
/opt/puppetlabs/puppet/bin/ruby $1/$2/scripts/config_version.rb $1 $2
|
||||||
else
|
else
|
||||||
/usr/bin/git --git-dir $1/$2/.git rev-parse HEAD
|
/usr/bin/git --version > /dev/null 2>&1 &&
|
||||||
|
/usr/bin/git --git-dir $1/$2/.git rev-parse HEAD ||
|
||||||
|
date +%s
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user