diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-09-11 13:57:24 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-09-11 13:57:24 +0300 |
commit | 24dda4a8b4355859a2451d9e67e3eaff6ff6e443 (patch) | |
tree | 147bed477872623c90eab2a3919e23fb3bc28313 /lib/gitlab_config.rb | |
parent | 5cab604ca0816d3e2e980eb3ba82e3b2b3786bdb (diff) | |
parent | 3f5136454dce6663d281f53121242de04b137c2a (diff) | |
download | gitlab-shell-24dda4a8b4355859a2451d9e67e3eaff6ff6e443.tar.gz |
Merge pull request #91 from raphendyr/patch-1
Replace build in home folder with environment
Diffstat (limited to 'lib/gitlab_config.rb')
-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 |