summaryrefslogtreecommitdiff
path: root/lib/gitlab_config.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gitlab_config.rb')
-rw-r--r--lib/gitlab_config.rb8
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