@sapphirecode/dcm
Advanced tools
Comparing version 1.2.6 to 1.2.7
@@ -70,3 +70,5 @@ "use strict"; | ||
switch (_d.label) { | ||
case 0: return [4 /*yield*/, store.read_docker_status()]; | ||
case 0: | ||
log('Initializing structure'); | ||
return [4 /*yield*/, store.read_docker_status()]; | ||
case 1: | ||
@@ -116,3 +118,5 @@ _d.sent(); | ||
switch (_a.label) { | ||
case 0: return [4 /*yield*/, init_structure(store)]; | ||
case 0: | ||
log('Starting up'); | ||
return [4 /*yield*/, init_structure(store)]; | ||
case 1: | ||
@@ -134,2 +138,3 @@ _a.sent(); | ||
if (service.passive && !include_passive) { | ||
log("Skipping passive service ".concat(service.name)); | ||
services.splice(index, 1); | ||
@@ -142,4 +147,7 @@ continue; | ||
}); | ||
if (waiting_for.length > 0) | ||
if (waiting_for.length > 0) { | ||
log("Service ".concat(service.name, " waiting for ").concat(waiting_for.join(', '))); | ||
continue; | ||
} | ||
log("Queueing ".concat(service.name)); | ||
queue.push.apply(queue, services.splice(index, 1)); | ||
@@ -227,2 +235,3 @@ } | ||
case 0: | ||
log('Pulling images'); | ||
all_images = []; | ||
@@ -229,0 +238,0 @@ buildable = []; |
@@ -21,2 +21,3 @@ /* eslint-disable require-unicode-regexp */ | ||
async function init_structure (store: Store): Promise<void> { | ||
log ('Initializing structure'); | ||
await store.read_docker_status (); | ||
@@ -41,2 +42,3 @@ for (const volume of store.volumes) | ||
): Promise<void> { | ||
log ('Starting up'); | ||
await init_structure (store); | ||
@@ -54,2 +56,3 @@ if (pull) | ||
if (service.passive && !include_passive) { | ||
log (`Skipping passive service ${service.name}`); | ||
services.splice (index, 1); | ||
@@ -63,5 +66,9 @@ continue; | ||
}); | ||
if (waiting_for.length > 0) | ||
if (waiting_for.length > 0) { | ||
log (`Service ${service.name} waiting for ${waiting_for.join (', ')}`); | ||
continue; | ||
} | ||
log (`Queueing ${service.name}`); | ||
queue.push (...services.splice (index, 1)); | ||
@@ -105,2 +112,3 @@ } | ||
export async function do_pull (store: Store): Promise<void> { | ||
log ('Pulling images'); | ||
const all_images: string[] = []; | ||
@@ -107,0 +115,0 @@ const buildable: Service[] = []; |
{ | ||
"name": "@sapphirecode/dcm", | ||
"version": "1.2.6", | ||
"version": "1.2.7", | ||
"main": "index.js", | ||
@@ -5,0 +5,0 @@ "description": "Managing docker compose configurations, volumes and networks", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
94134
2076