Make Sandbox.writeSessionFile actually write the file

This commit is contained in:
Emily Stark
2014-02-19 17:04:22 -08:00
parent 023276cd50
commit 0663aaa435

View File

@@ -490,7 +490,8 @@ _.extend(Sandbox.prototype, {
// restore authentication states.
writeSessionFile: function (contents) {
var self = this;
return fs.readFileSync(path.join(self.root, '.meteorsession'), 'utf8');
return fs.writeFileSync(path.join(self.root, '.meteorsession'),
contents, 'utf8');
}
});