From 80869cfae42c94c5d0a5c39866526b1f76d26f7c Mon Sep 17 00:00:00 2001 From: anak10thn Date: Tue, 29 Sep 2020 11:41:13 +0700 Subject: [PATCH] Add multiple constraints, bump version to 0.5.0 --- lib/create.js | 5 +++++ package.json | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/create.js b/lib/create.js index 18385b4..e419c7b 100644 --- a/lib/create.js +++ b/lib/create.js @@ -148,6 +148,11 @@ module.exports = { if(cmd.indexOf("constraint") >= 0){ arr.push("--constraint "+app.constraint); } + if(cmd.indexOf("constraints") >= 0){ + app.constraints.forEach((v)=>{ + arr.push("--constraint "+v); + }); + } if(cmd.indexOf("networks") >= 0){ app.networks.forEach(function(v){ arr.push("--network "+v); diff --git a/package.json b/package.json index b9bee94..d28319d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "orcinus", - "version": "0.4.4", + "version": "0.5.0", "description": "Container orchestration tools", "main": "cli.js", "scripts": {