gitlab-org--gitlab-foss/config/helpers/is_ee_env.js

10 lines
260 B
JavaScript
Raw Normal View History

2019-03-28 17:02:56 +00:00
const fs = require('fs');
const path = require('path');
const ROOT_PATH = path.resolve(__dirname, '../..');
module.exports =
process.env.IS_GITLAB_EE !== undefined
? JSON.parse(process.env.IS_GITLAB_EE)
2019-03-28 17:02:56 +00:00
: fs.existsSync(path.join(ROOT_PATH, 'ee'));