diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-04-10 21:03:37 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-04-10 21:03:37 +0300 |
commit | 46b92499f1778775e31a1c27cfd1013586cd9cdf (patch) | |
tree | de78dbd5620610ba7379f65edcded45d64241efa /lib/gitlab_config.rb | |
parent | fd677db79be3dfa92e77f7a664a65c6aa24607ff (diff) | |
parent | 9beb1c49fc2e708d5291420f39771264e89d9328 (diff) | |
download | gitlab-shell-46b92499f1778775e31a1c27cfd1013586cd9cdf.tar.gz |
Merge pull request #212 from jirutka/patch-1
Allow to configure location of the secret file
Diffstat (limited to 'lib/gitlab_config.rb')
-rw-r--r-- | lib/gitlab_config.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/gitlab_config.rb b/lib/gitlab_config.rb index 300d6ba..caca176 100644 --- a/lib/gitlab_config.rb +++ b/lib/gitlab_config.rb @@ -19,6 +19,10 @@ class GitlabConfig @config['auth_file'] ||= File.join(home, ".ssh/authorized_keys") end + def secret_file + @config['secret_file'] ||= File.join(ROOT_PATH, '.gitlab_shell_secret') + end + def gitlab_url @config['gitlab_url'] ||= "http://localhost/" end |