diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-02-05 13:24:41 +0200 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-02-05 13:24:41 +0200 |
commit | e7a4d233c47743acfc788767c93fd7153269be31 (patch) | |
tree | fc5196d4b8efd0fb464f24d99f996ef9fd3d155e /lib/gitlab_config.rb | |
parent | 02f4cb520458ad336e67c259810359ebcdaedb59 (diff) | |
download | gitlab-shell-e7a4d233c47743acfc788767c93fd7153269be31.tar.gz |
gitlab-url config
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 aa20d6e..6e16a13 100644 --- a/lib/gitlab_config.rb +++ b/lib/gitlab_config.rb @@ -8,10 +8,14 @@ class GitlabConfig end def repos_path - @config['repos_path'] = "/home/git/repositories" + @config['repos_path'] ||= "/home/git/repositories" end def auth_file - @config['auth_file'] = "/home/git/.ssh/authorized_keys" + @config['auth_file'] ||= "/home/git/.ssh/authorized_keys" + end + + def gitlab_url + @config['gitlab_url'] ||= "http://localhost/" end end |