blob: ad30d6420f70efc676cdd542dd5c1db2beb1008c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
module GitlabCi
VERSION = File.read(Rails.root.join("VERSION")).strip
# Try to read the current Git revision from a REVISION file. This is used by
# the omnibus packages.
revision_file = Rails.root.join('REVISION')
if File.exist?(revision_file)
REVISION = File.read(revision_file).strip
else
REVISION = `git log --pretty=format:'%h' -n 1`
end
REGISTRATION_TOKEN = SecureRandom.hex(10)
def self.config
Settings
end
end
|