-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
31 lines (24 loc) · 846 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// Generated by CoffeeScript 1.7.1
(function() {
var HealthCheckServer;
HealthCheckServer = (function() {
function HealthCheckServer(options) {
this.options = options || {};
this.options.port = this.options.port || 9020;
this.options.rulesFile = this.options.rulesFile || "./health-check-rules.json";
}
HealthCheckServer.prototype.run = function() {
var app, self, server;
app = require("./config/bootstrap")(__dirname, this.options.rulesFile);
self = this;
return server = app.listen(this.options.port, function() {
return console.log("Begin listening on port " + self.options.port);
});
};
return HealthCheckServer;
})();
module.exports = function(options) {
return new HealthCheckServer(options);
};
}).call(this);
//# sourceMappingURL=index.map