Check for rugged or output UNIX epoch

This commit is contained in:
Ranjit Viswakumar 2015-11-20 14:12:47 +00:00
parent f765903e25
commit c2bd0d3ca1

View File

@ -1,4 +1,9 @@
begin
require 'rugged'
rescue LoadError => e
t = Time.new
puts t.to_i
else
environmentpath = ARGV[0]
environment = ARGV[1]
@ -15,3 +20,4 @@ commit = repo.lookup(head_sha)
#add something to find the remote url
puts head_sha
end