mirror of
https://github.com/danbulant/docker-compose
synced 2026-06-10 10:11:51 +00:00
make it work with Node 6.x
Tests still require Node.js 8 for async/await
This commit is contained in:
parent
4fae99d8e4
commit
cd9df6ca19
3 changed files with 591 additions and 99 deletions
16
index.js
16
index.js
|
|
@ -1,16 +1,20 @@
|
|||
'use strict';
|
||||
|
||||
const { promisify } = require('util');
|
||||
const exec = promisify(require('child_process').exec);
|
||||
const promisify = require('es6-promisify');
|
||||
const exec = promisify(require('child_process').exec, { multiArgs: true });
|
||||
const logger = require('./lib/log');
|
||||
|
||||
const logStandards = function (standards) {
|
||||
if (standards.stdout.length > 0) {
|
||||
logger.info(standards.stdout);
|
||||
const stdout = standards.stdout || standards[0];
|
||||
|
||||
if (stdout && stdout.length > 0) {
|
||||
logger.info(stdout);
|
||||
}
|
||||
|
||||
if (standards.stderr) {
|
||||
logger.warn(standards.stderr);
|
||||
const stderr = standards.stderr || standards[1];
|
||||
|
||||
if (stderr) {
|
||||
logger.warn(stderr);
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
671
package-lock.json
generated
671
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "docker-compose",
|
||||
"version": "0.2.0",
|
||||
"version": "0.3.0",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"test": "./node_modules/tape/bin/tape test",
|
||||
|
|
@ -14,6 +14,7 @@
|
|||
"license": "MIT",
|
||||
"description": "Manage docker-compose from Node.js",
|
||||
"dependencies": {
|
||||
"es6-promisify": "^5.0.0",
|
||||
"winston": "^2.3.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
|
|
|||
Loading…
Reference in a new issue