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.rb17
1 files changed, 17 insertions, 0 deletions
diff --git a/lib/gitlab_config.rb b/lib/gitlab_config.rb
new file mode 100644
index 0000000..aa20d6e
--- /dev/null
+++ b/lib/gitlab_config.rb
@@ -0,0 +1,17 @@
+require 'yaml'
+
+class GitlabConfig
+ attr_reader :config
+
+ def initialize
+ @config = YAML.load_file(File.join(ROOT_PATH, 'config.yml'))
+ end
+
+ def repos_path
+ @config['repos_path'] = "/home/git/repositories"
+ end
+
+ def auth_file
+ @config['auth_file'] = "/home/git/.ssh/authorized_keys"
+ end
+end