mirror of
https://github.com/zhigang1992/deployd.git
synced 2026-05-13 12:37:17 +08:00
13 lines
303 B
JavaScript
13 lines
303 B
JavaScript
var Module = require('../module')
|
|
, path = require('path')
|
|
, Script = require('../script');
|
|
|
|
module.exports = Module.extend({
|
|
|
|
load: function(fn) {
|
|
var events = this.server.events = this.events = {};
|
|
|
|
Script.loaddir(path.join(this.server.options.dir, 'events'), events, fn);
|
|
}
|
|
|
|
}); |