rename stack to composestack
All checks were successful
Build and push Docker image / build (push) Successful in 9s

This commit is contained in:
Hamcha 2024-04-10 11:35:46 +02:00
parent 62d4ad061e
commit a0cfb72340
Signed by: hamcha
GPG key ID: 1669C533B8CF6D89
3 changed files with 7 additions and 7 deletions

View file

@ -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");

View file

@ -18,7 +18,7 @@ function mapRecordToCompose<T, F extends { toCompose(): T }>(
}
/**
* 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<T, F extends { toCompose(): T }>(
* const stack = new ExampleStack("example");
* ```
*/
export class Stack {
export class ComposeStack {
private services: Record<string, Service> = {};
private networks: Record<string, Network> = {};
private volumes: Record<string, Volume> = {};

View file

@ -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);
}