lazy-assert
Advanced tools
Comparing version 0.2.9 to 0.2.10
{ | ||
"name": "lazy-assert", | ||
"version": "0.2.9", | ||
"version": "0.2.10", | ||
"description": "An way of doing assertion for lazy people ...", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -1,2 +0,2 @@ | ||
#!/bin/env node | ||
#!/usr/bin/env node | ||
@@ -7,2 +7,2 @@ var utils = require('../utils'); | ||
var basePath = utils.j('.'); | ||
lib.refreshAll(basePath); | ||
lib.refreshAll(basePath, true); |
@@ -1,2 +0,2 @@ | ||
#!/bin/env node | ||
#!/usr/bin/env node | ||
@@ -7,2 +7,2 @@ var utils = require('../utils'); | ||
var basePath = utils.j('.'); | ||
lib.removeAll(basePath); | ||
lib.removeAll(basePath, true); |
@@ -45,5 +45,6 @@ var utils = require('../utils'); | ||
refreshAll: function (basePath) { | ||
refreshAll: function (basePath, output) { | ||
lib.forEachActual(basePath, function (actualPath, expectedPath) { | ||
// console.log('@@d', actualPath, expectedPath); | ||
output && console.log('[INFO] refreshing ' + actualPath); | ||
utils.write(actualPath, | ||
@@ -55,4 +56,5 @@ utils.read(expectedPath) | ||
removeAll: function (basePath) { | ||
removeAll: function (basePath, output) { | ||
lib.forEachActual(basePath, function (actualPath) { | ||
output && console.log('[INFO] removing ' + actualPath); | ||
fs.unlink(actualPath); | ||
@@ -59,0 +61,0 @@ }); |
1000165
11535