From 1c65e2db89e94694efbfff0372bc56e2a424075e Mon Sep 17 00:00:00 2001 From: Pedro Dias Date: Fri, 10 Mar 2017 15:41:04 +0000 Subject: [PATCH] https://github.com/apocas/dockerode/issues/171 --- lib/docker.js | 4 ++-- package.json | 2 +- test/promises.js | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/docker.js b/lib/docker.js index e5c4b86..44b704e 100644 --- a/lib/docker.js +++ b/lib/docker.js @@ -1236,7 +1236,7 @@ Docker.prototype.run = function(image, cmd, streamo, createOptions, startOptions if (typeof arguments[arguments.length - 1] === 'function') { return this.runCallback(image, cmd, streamo, createOptions, startOptions, callback); } else { - return this.runAsync(image, cmd, streamo, createOptions, startOptions); + return this.runPromise(image, cmd, streamo, createOptions, startOptions); } }; @@ -1321,7 +1321,7 @@ Docker.prototype.runCallback = function(image, cmd, streamo, createOptions, star return hub; }; -Docker.prototype.runAsync = function(image, cmd, streamo, createOptions, startOptions) { +Docker.prototype.runPromise = function(image, cmd, streamo, createOptions, startOptions) { var self = this; createOptions = createOptions || {}; diff --git a/package.json b/package.json index 0705651..a1c9016 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "dockerode", "description": "Docker Remote API module.", - "version": "2.3.5", + "version": "2.3.6", "author": "Pedro Dias ", "maintainers": [ "apocas " diff --git a/test/promises.js b/test/promises.js index faa9265..c01ea0d 100644 --- a/test/promises.js +++ b/test/promises.js @@ -42,7 +42,7 @@ describe("#promises", function() { }); }); - it("should runAsync a command", function(done) { + it("should runPromise a command", function(done) { this.timeout(30000); docker.run(testImage, ['bash', '-c', 'uname -a'], process.stdout).then(function(container) {