Allow overwriting ~/.meteorsession file with env var.

Useful for tests.
This commit is contained in:
Emily Stark
2013-12-16 22:03:50 -08:00
parent 546c344b3d
commit 373bc2ceec

View File

@@ -12,7 +12,8 @@ var url = require('url');
var auth = exports;
var getSessionFilePath = function () {
return path.join(process.env.HOME, '.meteorsession');
return process.env.SESSION_FILE_PATH ||
path.join(process.env.HOME, '.meteorsession');
};
var readSessionData = function () {