summaryrefslogtreecommitdiff
path: root/support/gitlab_config.rb
diff options
context:
space:
mode:
authorNick Thomas <nick@gitlab.com>2019-10-17 12:26:08 +0100
committerNick Thomas <nick@gitlab.com>2019-10-18 11:47:25 +0100
commitede41ee451dd0aa6d0ecd958c7fadbdb3b63f3e4 (patch)
tree0f80f7394231d39970f23a08ba9ba2ce7051e22c /support/gitlab_config.rb
parentff46222a3a75467d6b22c94abb09a3bb6be60623 (diff)
downloadgitlab-shell-ede41ee451dd0aa6d0ecd958c7fadbdb3b63f3e4.tar.gz
Simplify building and testing the Go components
Diffstat (limited to 'support/gitlab_config.rb')
-rw-r--r--support/gitlab_config.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/support/gitlab_config.rb b/support/gitlab_config.rb
index 1416488..52ac5ee 100644
--- a/support/gitlab_config.rb
+++ b/support/gitlab_config.rb
@@ -1,5 +1,8 @@
require 'yaml'
+# Determine the root of the gitlab-shell directory
+ROOT_PATH = ENV.fetch('GITLAB_SHELL_DIR', File.expand_path('..', __dir__))
+
class GitlabConfig
attr_reader :config