mirror of
https://github.com/valentineus/simple-container.git
synced 2025-04-29 00:51:25 +03:00
Removing the debugger
This commit is contained in:
parent
c6300b1e29
commit
8adbea869e
@ -34,7 +34,6 @@
|
|||||||
"mocha": "^4.0.0"
|
"mocha": "^4.0.0"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"debug": "^3.1.0",
|
|
||||||
"dockerode": "^2.5.1"
|
"dockerode": "^2.5.1"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
import { normalize } from 'path';
|
import { normalize } from 'path';
|
||||||
import createDebug from 'debug';
|
|
||||||
import Docker from 'dockerode';
|
import Docker from 'dockerode';
|
||||||
import { statSync } from 'fs';
|
import { statSync } from 'fs';
|
||||||
|
|
||||||
@ -222,7 +221,7 @@ export default class Containers {
|
|||||||
callback(error);
|
callback(error);
|
||||||
}
|
}
|
||||||
|
|
||||||
self._docker.modem.followProgress(stream, callback, self.debug);
|
self._docker.modem.followProgress(stream, callback);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -260,14 +259,4 @@ export default class Containers {
|
|||||||
_isObject(value) {
|
_isObject(value) {
|
||||||
return typeof value === 'object';
|
return typeof value === 'object';
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @param {*} Any variables
|
|
||||||
* @description A simple debugger.
|
|
||||||
*/
|
|
||||||
debug() {
|
|
||||||
var args = Array.prototype.slice.call(arguments);
|
|
||||||
var debug = createDebug('containers');
|
|
||||||
debug.apply(null, args);
|
|
||||||
}
|
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user