Add config.isDemo()
This commit is contained in:
@@ -33,6 +33,7 @@ exports = module.exports = {
|
|||||||
zoneName: zoneName,
|
zoneName: zoneName,
|
||||||
|
|
||||||
isDev: isDev,
|
isDev: isDev,
|
||||||
|
isDemo: isDemo,
|
||||||
|
|
||||||
// for testing resets to defaults
|
// for testing resets to defaults
|
||||||
_reset: _reset
|
_reset: _reset
|
||||||
@@ -209,6 +210,10 @@ function isDev() {
|
|||||||
return /dev/i.test(get('boxVersionsUrl'));
|
return /dev/i.test(get('boxVersionsUrl'));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function isDemo() {
|
||||||
|
return get('isDemo') === true;
|
||||||
|
}
|
||||||
|
|
||||||
function provider() {
|
function provider() {
|
||||||
// FIXME this fallback is only there because old Cloudrons do not have the provider set till the next upgrade
|
// FIXME this fallback is only there because old Cloudrons do not have the provider set till the next upgrade
|
||||||
return get('provider') || 'caas';
|
return get('provider') || 'caas';
|
||||||
|
|||||||
Reference in New Issue
Block a user