diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2015-02-08 22:44:25 +0100 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2015-02-08 22:46:57 +0100 |
commit | 9beb1c49fc2e708d5291420f39771264e89d9328 (patch) | |
tree | 5d6e54bd0d613c470fda7067b7a4fffdbe25655b /lib/gitlab_config.rb | |
parent | 6d23be22d907ad8328169d36712ea36d36107b93 (diff) | |
download | gitlab-shell-9beb1c49fc2e708d5291420f39771264e89d9328.tar.gz |
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 c97743b..1d8c690 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 |