diff --git a/example/immich.ts b/example/immich.ts index 3eeec0d..1df3190 100644 --- a/example/immich.ts +++ b/example/immich.ts @@ -3,7 +3,7 @@ * https://raw.githubusercontent.com/immich-app/immich/main/docker/docker-compose.yml */ -import { Stack } from "../mod.ts"; +import { ComposeStack } from "../mod.ts"; interface ImmichStackOptions { stackName?: string; @@ -16,7 +16,7 @@ interface ImmichStackOptions { }; } -export class ImmichStack extends Stack { +export class ImmichStack extends ComposeStack { constructor(props: ImmichStackOptions) { super(props.stackName ?? "immich"); diff --git a/src/components/stack.ts b/src/components/stack.ts index 70d4e78..6120932 100644 --- a/src/components/stack.ts +++ b/src/components/stack.ts @@ -18,7 +18,7 @@ function mapRecordToCompose( } /** - * Stack is a collection of services, networks, and volumes. + * ComposeStack is a collection of services, networks, and volumes. * Every stack gets turned into a compose file at the end of the execution. * To create a stack, define a new class that extends Stack, then * instantiate the class with the name of the stack. @@ -41,7 +41,7 @@ function mapRecordToCompose( * const stack = new ExampleStack("example"); * ``` */ -export class Stack { +export class ComposeStack { private services: Record = {}; private networks: Record = {}; private volumes: Record = {}; diff --git a/src/deployment.ts b/src/deployment.ts index 6b16d82..5fb0536 100644 --- a/src/deployment.ts +++ b/src/deployment.ts @@ -1,9 +1,9 @@ -import { Stack } from "./components/mod.ts"; +import { ComposeStack } from "./components/mod.ts"; import { ComposeSpecification } from "./compose-schema.ts"; -const deployments: Stack[] = []; +const deployments: ComposeStack[] = []; -export function registerDeployment(stack: Stack) { +export function registerDeployment(stack: ComposeStack) { deployments.push(stack); }