There was an error while loading. Please reload this page.
2 parents 5cab604 + 3f51364 commit 24dda4aCopy full SHA for 24dda4a
lib/gitlab_config.rb
@@ -7,12 +7,16 @@ def initialize
7
@config = YAML.load_file(File.join(ROOT_PATH, 'config.yml'))
8
end
9
10
+ def home
11
+ ENV['HOME']
12
+ end
13
+
14
def repos_path
- @config['repos_path'] ||= "/home/git/repositories"
15
+ @config['repos_path'] ||= File.join(home, "repositories")
16
17
18
def auth_file
- @config['auth_file'] ||= "/home/git/.ssh/authorized_keys"
19
+ @config['auth_file'] ||= File.join(home, ".ssh/authorized_keys")
20
21
22
def gitlab_url
0 commit comments