diff options
-rw-r--r-- | lib/gitlab_config.rb | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/gitlab_config.rb b/lib/gitlab_config.rb index 816da2c..1ebb08e 100644 --- a/lib/gitlab_config.rb +++ b/lib/gitlab_config.rb @@ -7,12 +7,16 @@ class GitlabConfig @config = YAML.load_file(File.join(ROOT_PATH, 'config.yml')) end + def home + ENV['HOME'] + end + def repos_path - @config['repos_path'] ||= "/home/git/repositories" + @config['repos_path'] ||= File.join(home, "repositories") end def auth_file - @config['auth_file'] ||= "/home/git/.ssh/authorized_keys" + @config['auth_file'] ||= File.join(home, ".ssh/authorized_keys") end def gitlab_url |