diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-02-04 09:41:26 +0200 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-02-04 09:41:26 +0200 |
commit | 1d180b7a75183ae463769b6bf09ee4eaf3bfc3d8 (patch) | |
tree | 35d4e520ffeb0291c139dd1be4367270edc54754 /lib/gitlab_config.rb | |
parent | 451b4a64c0a3e39902ad87dfe034c58d8c6d45dc (diff) | |
download | gitlab-shell-1d180b7a75183ae463769b6bf09ee4eaf3bfc3d8.tar.gz |
GitlabConfig. Fixed adding key
Diffstat (limited to 'lib/gitlab_config.rb')
-rw-r--r-- | lib/gitlab_config.rb | 17 |
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 |