catjs
Version:
(Mobile) Web Automation Framework
56 lines (46 loc) • 1.43 kB
JavaScript
var _fs = require('fs.extra'),
_path = require('path'),
_global = catrequire("cat.global"),
_log = _global.log(),
_process = require('child_process'),
_basePlugin = require("./../Base.js");
/**
* Manager extension for CAT
* A default extension for running plugins
*
* Any plugin that needs to be dependent on general extension with no special
* services can hook to this implementation
*
* @type {module.exports}
*/
module.exports = _basePlugin.ext(function () {
var _me = this,
_module = {
watch: function(config) {
},
/**
* Apply the manager extension
*
* @param config
* command - command to run
* options - spawn options
*/
apply: function (config) {
//_me.getEmitter().emit("job.done", {status: "done"});
},
/**
* Plugin initialization
*
* @param config The passed arguments
* project - The project configuration object
* grunt - The grunt handle
* emitter - The emitter handle
*
* @param ext The extension properties
*/
init: function (config, ext) {
_me.initialize(config, ext);
}
};
return _module;
});