Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWinnie Hellmann <winnie@gitlab.com>2019-03-28 20:02:56 +0300
committerWinnie Hellmann <winnie@gitlab.com>2019-03-28 20:14:16 +0300
commitbaa671a3895acde31ea4433023e90ca72a7ae933 (patch)
tree3ee72718ee29e3363681a46b7c1c02346d84083e /config/helpers
parenta85fd76f524802a02957ccdcca7674f618a9e069 (diff)
Extract IS_EE config helper
Diffstat (limited to 'config/helpers')
-rw-r--r--config/helpers/is_ee_env.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/config/helpers/is_ee_env.js b/config/helpers/is_ee_env.js
new file mode 100644
index 00000000000..1fdbca591c0
--- /dev/null
+++ b/config/helpers/is_ee_env.js
@@ -0,0 +1,9 @@
+const fs = require('fs');
+const path = require('path');
+
+const ROOT_PATH = path.resolve(__dirname, '../..');
+
+module.exports =
+ process.env.EE !== undefined
+ ? JSON.parse(process.env.EE)
+ : fs.existsSync(path.join(ROOT_PATH, 'ee'));