MCPcopy Index your code
hub / github.com/chartbrew/chartbrew / isSourceServerEnabled

Function isSourceServerEnabled

server/sources/sourceAvailability.js:48–55  ·  view source on GitHub ↗
(source, env = process.env)

Source from the content-addressed store, hash-verified

46}
47
48function isSourceServerEnabled(source, env = process.env) {
49 const disabledServerSources = parseSourceList(env.CB_DISABLED_SERVER_SOURCES);
50 if (sourceMatchesList(source, disabledServerSources)) {
51 return false;
52 }
53
54 return source?.availability?.server?.enabled !== false;
55}
56
57function assertSourceServerEnabled(source, env = process.env) {
58 if (!isSourceServerEnabled(source, env)) {

Callers 5

getTemplateSourcesFunction · 0.85

Calls 2

parseSourceListFunction · 0.70
sourceMatchesListFunction · 0.70

Tested by

no test coverage detected