webgme-engine
Version:
WebGME server and Client API without a GUI
32 lines (27 loc) • 1.21 kB
JavaScript
/*globals requireJS*/
/*eslint-env node*/
/**
* @author pmeijer / https://github.com/pmeijer
*/
;
var PluginManagerBase = requireJS('plugin/managerbase'),
BlobClientWithFSBackend = require('../server/middleware/blob/BlobClientWithFSBackend');
/**
* Creates a new instance of PluginCliManager
* @param {UserProject} [project] - optional default project, can be passed during initialization of plugin too.
* @param {object} - mainLogger - logger for manager, plugin-logger will fork from this logger.
* @param {object} gmeConfig - global configuration
* @param {object} [opts] - Optional options
* @param {object} [opts.writeBlobFilesDir] - If defined will put blob files with their
* name inside %cwd%/%writeBlobFilesDir%
* @constructor
* @ignore
*/
function PluginCliManager(project, mainLogger, gmeConfig, opts) {
var blobClient = new BlobClientWithFSBackend(gmeConfig, mainLogger, opts);
PluginManagerBase.call(this, blobClient, project, mainLogger, gmeConfig);
}
// Inherit from PluginManagerBase
PluginCliManager.prototype = Object.create(PluginManagerBase.prototype);
PluginCliManager.prototype.constructor = PluginCliManager;
module.exports = PluginCliManager;