2013-08-05 10:11:32 -05:00
|
|
|
|
|
|
|
var GhostPlugin;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* GhostPlugin is the base class for a standard plugin.
|
|
|
|
* @class
|
|
|
|
* @parameter {Ghost} The current Ghost app instance
|
|
|
|
*/
|
|
|
|
GhostPlugin = function (ghost) {
|
|
|
|
this.app = ghost;
|
|
|
|
};
|
|
|
|
|
|
|
|
/**
|
|
|
|
* A method that will be called on installation.
|
|
|
|
* Can optionally return a promise if async.
|
|
|
|
* @parameter {Ghost} The current Ghost app instance
|
|
|
|
*/
|
|
|
|
GhostPlugin.prototype.install = function (ghost) {
|
2013-10-31 13:02:34 -05:00
|
|
|
/*jslint unparam:true*/
|
2013-08-05 10:11:32 -05:00
|
|
|
return;
|
|
|
|
};
|
|
|
|
|
|
|
|
/**
|
|
|
|
* A method that will be called on uninstallation.
|
|
|
|
* Can optionally return a promise if async.
|
|
|
|
* @parameter {Ghost} The current Ghost app instance
|
|
|
|
*/
|
|
|
|
GhostPlugin.prototype.uninstall = function (ghost) {
|
2013-10-31 13:02:34 -05:00
|
|
|
/*jslint unparam:true*/
|
2013-08-05 10:11:32 -05:00
|
|
|
return;
|
|
|
|
};
|
|
|
|
|
|
|
|
/**
|
|
|
|
* A method that will be called when the plugin is enabled.
|
|
|
|
* Can optionally return a promise if async.
|
|
|
|
* @parameter {Ghost} The current Ghost app instance
|
|
|
|
*/
|
|
|
|
GhostPlugin.prototype.activate = function (ghost) {
|
2013-10-31 13:02:34 -05:00
|
|
|
/*jslint unparam:true*/
|
2013-08-05 10:11:32 -05:00
|
|
|
return;
|
|
|
|
};
|
|
|
|
|
|
|
|
/**
|
|
|
|
* A method that will be called when the plugin is disabled.
|
|
|
|
* Can optionally return a promise if async.
|
|
|
|
* @parameter {Ghost} The current Ghost app instance
|
|
|
|
*/
|
|
|
|
GhostPlugin.prototype.deactivate = function (ghost) {
|
2013-10-31 13:02:34 -05:00
|
|
|
/*jslint unparam:true*/
|
2013-08-05 10:11:32 -05:00
|
|
|
return;
|
|
|
|
};
|
|
|
|
|
|
|
|
module.exports = GhostPlugin;
|
|
|
|
|