From 441d7398a84d9ae2f930c7bb61aa1d9a335d5044 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Se=CC=81rgio=20Ramos?= Date: Sat, 15 Jul 2017 04:37:05 +0100 Subject: [PATCH] feat(docker-compose-client): send 'files' in options --- packages/docker-compose-client/lib/index.js | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/packages/docker-compose-client/lib/index.js b/packages/docker-compose-client/lib/index.js index 0713fb42..ddaae867 100644 --- a/packages/docker-compose-client/lib/index.js +++ b/packages/docker-compose-client/lib/index.js @@ -15,42 +15,45 @@ module.exports = class DockerComposeClient extends EventEmitter { } _invoke(method, options, manifest, cb) { - return this.client.invoke(method, options, manifest, cb); + this.client.invoke(method, options, manifest, cb); } close() { - return this.client.close(); + this.client.close(); } - provision({ projectName, environment, manifest }, cb) { - return this._invoke('up', { + provision({ projectName, environment, manifest, files }, cb) { + this._invoke('up', { // eslint-disable-next-line camelcase project_name: projectName, + files, environment }, manifest, cb); } - scale({ projectName, services, environment, manifest }, cb) { + scale({ projectName, services, environment, manifest, files }, cb) { const options = { environment, // eslint-disable-next-line camelcase project_name: projectName, + files, services: Object.keys(services).map(name => ({ name, num: services[name] })) }; - return this._invoke('scale', options, manifest, cb); + this._invoke('scale', options, manifest, cb); } - config({ projectName, environment, manifest }, cb) { + config({ projectName, environment, manifest, files }, cb) { const options = { // eslint-disable-next-line camelcase project_name: projectName, + files, environment }; - return this._invoke('config', options, manifest, cb); + this._invoke('config', options, manifest, cb); } };