Skip to content

Commit

Permalink
[JRD-471] Update to new carbono-service-manager
Browse files Browse the repository at this point in the history
  • Loading branch information
cerealkill committed Oct 1, 2015
1 parent 9a7e1d1 commit 69f7b79
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 133 deletions.
2 changes: 1 addition & 1 deletion app/auth/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
var passport = require('passport');
var BearerStrategy = require('passport-http-bearer').Strategy;
var helper = require('./lib/auth-server-wrapper');
var etcd = require('../../lib/etcd-manager');
var etcd = require('carbono-service-manager');

module.exports = function (app) {
app.use(passport.initialize());
Expand Down
2 changes: 1 addition & 1 deletion app/controllers/infra.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ var CJM = require('carbono-json-messages');
var uuid = require('node-uuid');
var bo = require('../lib/mission-control-bo');
var pjson = require('../../package.json');
var etcd = require('../../lib/etcd-manager');
var etcd = require('carbono-service-manager');

module.exports = function (app) {

Expand Down
2 changes: 1 addition & 1 deletion app/controllers/project.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
var bo = require('../lib/mission-control-bo');
var uuid = require('node-uuid');
var AccountManager = require('../lib/AccountManagerHelper');
var etcd = require('../../lib/etcd-manager');
var etcd = require('carbono-service-manager');

module.exports = function (app) {
var RequestHelper = require('../lib/RequestHelper');
Expand Down
2 changes: 1 addition & 1 deletion config/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"port": 7892,
"key" : "mc",
"alias" : "Carbono Mission-Control",
"hosts" : [
"dependencies" : [
{"key" : "dcm", "alias" : "Jardim DCM"},
{"key" : "ipe", "alias" : "Mogno Ipê"},
{"key" : "auth", "alias" : "Carbono OAuth2"},
Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ var server = app.listen(htPort, function () {
var port = server.address().port;
console.log('Mission-Control listening at http://%s:%s', host, port);
// Service discovery and registration
require('./lib/etcd-manager');
require('carbono-service-manager');
});

module.exports = server;
127 changes: 0 additions & 127 deletions lib/etcd-manager.js

This file was deleted.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"dependencies": {
"body-parser": "^1.13.3",
"carbono-json-messages": "0.0.2",
"carbono-service-manager": "0.0.4",
"carbono-service-manager": "0.0.6",
"colors": "^1.1.2",
"config": "^1.15.0",
"consign": "^0.1.1",
Expand Down

0 comments on commit 69f7b79

Please sign in to comment.