Skip to content

Commit

Permalink
Merge pull request #56 from d00rman/resolve-dirname
Browse files Browse the repository at this point in the history
Bug fix: Adjust test for _basePath
  • Loading branch information
eevans committed Oct 7, 2015
2 parents 5bd3513 + 7d4fc20 commit cfd6563
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/base_service.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ function BaseService(options) {
this._metrics = null;

// Figure out the base path
this._basePath = /\/node_modules\/service-runner$/.test(__dirname) ?
path.resolve(__dirname + '/../../') : path.resolve('./');
this._basePath = /\/node_modules\/service-runner\/lib$/.test(__dirname) ?
path.resolve(__dirname + '/../../../') : path.resolve('./');
}

BaseService.prototype.run = function run(conf) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "service-runner",
"version": "0.2.9",
"version": "0.2.10",
"description": "Generic nodejs service supervisor / cluster runner",
"main": "service-runner.js",
"bin": {
Expand Down

0 comments on commit cfd6563

Please sign in to comment.