blob: ac6cc19ef9bae266403c17b7c5bb801d6248fcc2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
require 'yaml'
class GitlabConfig
attr_reader :config
def initialize
@config = YAML.load_file(File.join(ROOT_PATH, 'config.yml'))
end
def repos_path
@config['repos_path'] ||= "/home/git/repositories"
end
def auth_file
@config['auth_file'] ||= "/home/git/.ssh/authorized_keys"
end
def gitlab_url
@config['gitlab_url'] ||= "http://localhost/"
end
def http_settings
@config['http_settings'] ||= {}
end
def redis
@config['redis'] ||= {}
end
end
|