Skip to content

Commit

Permalink
Merge pull request #51 from orcinustools/0.5.0
Browse files Browse the repository at this point in the history
Add multiple constraints, bump version to 0.5.0
  • Loading branch information
anak10thn authored Sep 29, 2020
2 parents 695e90d + 80869cf commit 09936ef
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions lib/create.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "orcinus",
"version": "0.4.4",
"version": "0.5.0",
"description": "Container orchestration tools",
"main": "cli.js",
"scripts": {
Expand Down

0 comments on commit 09936ef

Please sign in to comment.