in core/nodejsActionBase/platform/platform.js [94:109]
createPlatformImpl(id) {
// Load the appropriate implementation module and return reference to it
switch (id.toLowerCase()) {
case PLATFORM_KNATIVE:
const knPlatformImpl = require('./knative.js');
this._platformImpl = new knPlatformImpl(this);
break;
case PLATFORM_OPENWHISK:
const owPlatformImpl = require('./openwhisk.js');
this._platformImpl = new owPlatformImpl(this);
break;
default:
console.error("Platform ID is not a known value (" + id + ").");
}
return this._platformImpl;
}