Permalink
Browse files

[fix] fs.existsSync was moved to fs.existsSync

  • Loading branch information...
1 parent 59a5336 commit d93ddb38ac0327f4cca0114e6c4d333a4923dcdf @jfhbrook jfhbrook committed Jul 7, 2012
Showing with 3 additions and 3 deletions.
  1. +1 −1 lib/onrailway.js
  2. +1 −1 lib/railway_utils.js
  3. +1 −1 test/generators.js
View
@@ -4,7 +4,7 @@ var singularize = require("../vendor/inflection").singularize;
var utils = require('./railway_utils');
var safe_merge = utils.safe_merge;
var Map = require('railway-routes').Map;
-var existsSync = fs.existsSync || path.existsSync;
+var existsSync = fs.existsSync || fs.existsSync;
require('coffee-script');
/**
View
@@ -200,4 +200,4 @@ function readYaml(file) {
}
exports.readYaml = readYaml;
-exports.existsSync = fs.existsSync || path.existsSync;
+exports.existsSync = fs.existsSync || fs.existsSync;
View
@@ -19,7 +19,7 @@ fs.writeFileSync = function (name, content) {
fs.readFileSync = function (name) {
return memfs[name] || readFileSync(name);
};
-path.existsSync = function (path) {
+fs.existsSync = function (path) {
return !!memfs[path];
};
railway.utils.appendToFile = function (name, content) {

0 comments on commit d93ddb3

Please sign in to comment.