mirror of
https://github.com/mgerb/mywebsite
synced 2026-01-13 11:12:47 +00:00
Added files
This commit is contained in:
25
node_modules/forever/test/helpers/mocks/monitor.js
generated
vendored
Normal file
25
node_modules/forever/test/helpers/mocks/monitor.js
generated
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
var util = require('util'),
|
||||
broadway = require('broadway'),
|
||||
ChildProcessMock = require('./child-process').ChildProcessMock;
|
||||
|
||||
var MonitorMock = exports.MonitorMock = function (options) {
|
||||
broadway.App.call(this, options);
|
||||
|
||||
this.child = new ChildProcessMock();
|
||||
this.running = false;
|
||||
};
|
||||
util.inherits(MonitorMock, broadway.App);
|
||||
|
||||
MonitorMock.prototype.__defineGetter__('data', function () {
|
||||
return {
|
||||
uid: '_uid',
|
||||
command: 'node'
|
||||
};
|
||||
});
|
||||
|
||||
MonitorMock.prototype.kill = MonitorMock.prototype.stop = function (forceStop) {
|
||||
this.running = false;
|
||||
|
||||
this.emit('stop');
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user