UNPKG

5.38 kBPlain TextView Raw
1import {Container} from "inversify";
2import OpsApplication from "./application/OpsApplication";
3import InterpolateApplication from "./application/InterpolateApplication";
4import OpsApplicationContextReader from "./application/OpsApplicationContextReader";
5import InterpolateApplicationContextReader from "./application/InterpolateApplicationContextReader";
6import Cli from "./components/cli/Cli";
7import OpsApplicationConfiguration from "./application/OpsApplicationConfiguration";
8import InterpolateApplicationConfiguration from "./application/InterpolateApplicationConfiguration";
9import OpsApplicationUI from "./application/OpsApplicationUI";
10import InterpolateApplicationUI from "./application/InterpolateApplicationUI";
11import ManifestsScanner from "./components/manifests/ManifestsScanner";
12import EchoTaskExecutor from "./components/tasks/executors/echo/EchoTaskExecutor";
13import FSTaskExecutor from "./components/tasks/executors/fs/FSTaskExecutor";
14import ManifestTaskExecutor from "./components/tasks/executors/manifest/ManifestTaskExecutor";
15import TaskExecutionService from "./components/tasks/TaskExecutionService";
16import TerraformSourcesFormatterTaskExecutor
17 from "./components/tasks/executors/terraform/TerraformSourcesFormatterTaskExecutor";
18import TerragruntConfigurationGeneratorTaskExecutor
19 from "./components/tasks/executors/terraform/TerragruntConfigurationGeneratorTaskExecutor";
20import TerraformTaskExecutor from "./components/tasks/executors/terraform/TerraformTaskExecutor";
21import TerraformSourcesImporterTaskExecutor
22 from "./components/tasks/executors/terraform/TerraformSourcesImporterTaskExecutor";
23import OpsTaskExecutor from "./components/tasks/executors/ops/OpsTaskExecutor";
24import TerraformVariablesGeneratorTaskExecutor
25 from "./components/tasks/executors/terraform/TerraformVariablesGeneratorTaskExecutor";
26import SchemaValidator from "./domain/SchemaValidator";
27import ModelsBuilder from "./domain/ModelsBuilder";
28import ModulesService from "./components/modules/ModulesService";
29import TerraformSectionSourcesGeneratorTaskExecutor
30 from "./components/tasks/executors/terraform/TerraformSectionSourcesGeneratorTaskExecutor";
31import TerraformTemplateSourcesGeneratorTaskExecutor
32 from "./components/tasks/executors/terraform/TerraformTemplateSourcesGeneratorTaskExecutor";
33import TerraformRemoteStatesGeneratorTaskExecutor
34 from "./components/tasks/executors/terraform/TerraformRemoteStatesGeneratorTaskExecutor";
35import ExecTaskExecutor from "./components/tasks/executors/exec/ExecTaskExecutor";
36import YamlService from "./components/yaml/YamlService";
37
38const container = new Container();
39container.bind<Cli>(Cli).toSelf().inSingletonScope();
40container.bind<OpsApplication>(OpsApplication).toSelf().inSingletonScope();
41container.bind<InterpolateApplication>(InterpolateApplication).toSelf().inSingletonScope();
42container.bind<OpsApplicationUI>(OpsApplicationUI).toSelf().inSingletonScope();
43container.bind<InterpolateApplicationUI>(InterpolateApplicationUI).toSelf().inSingletonScope();
44container.bind<OpsApplicationContextReader>(OpsApplicationContextReader).toSelf().inSingletonScope();
45container.bind<InterpolateApplicationContextReader>(InterpolateApplicationContextReader).toSelf().inSingletonScope();
46container.bind<OpsApplicationConfiguration>(OpsApplicationConfiguration).toSelf().inSingletonScope();
47container.bind<InterpolateApplicationConfiguration>(InterpolateApplicationConfiguration).toSelf().inSingletonScope();
48container.bind<ModulesService>(ModulesService).toSelf().inSingletonScope();
49container.bind<ManifestsScanner>(ManifestsScanner).toSelf().inSingletonScope();
50container.bind<SchemaValidator>(SchemaValidator).toSelf().inSingletonScope();
51container.bind<ModelsBuilder>(ModelsBuilder).toSelf().inSingletonScope();
52container.bind<YamlService>(YamlService).toSelf().inSingletonScope();
53container.bind<TaskExecutionService>(TaskExecutionService).toSelf().inSingletonScope();
54container.bind<OpsTaskExecutor>(OpsTaskExecutor).toSelf().inSingletonScope();
55container.bind<FSTaskExecutor>(FSTaskExecutor).toSelf().inSingletonScope();
56container.bind<ManifestTaskExecutor>(ManifestTaskExecutor).toSelf().inSingletonScope();
57container.bind<EchoTaskExecutor>(EchoTaskExecutor).toSelf().inSingletonScope();
58container.bind<ExecTaskExecutor>(ExecTaskExecutor).toSelf().inSingletonScope();
59container.bind<TerraformVariablesGeneratorTaskExecutor>(TerraformVariablesGeneratorTaskExecutor).toSelf().inSingletonScope();
60container.bind<TerraformRemoteStatesGeneratorTaskExecutor>(TerraformRemoteStatesGeneratorTaskExecutor).toSelf().inSingletonScope();
61container.bind<TerraformSectionSourcesGeneratorTaskExecutor>(TerraformSectionSourcesGeneratorTaskExecutor).toSelf().inSingletonScope();
62container.bind<TerraformTemplateSourcesGeneratorTaskExecutor>(TerraformTemplateSourcesGeneratorTaskExecutor).toSelf().inSingletonScope();
63container.bind<TerraformSourcesImporterTaskExecutor>(TerraformSourcesImporterTaskExecutor).toSelf().inSingletonScope();
64container.bind<TerraformSourcesFormatterTaskExecutor>(TerraformSourcesFormatterTaskExecutor).toSelf().inSingletonScope();
65container.bind<TerragruntConfigurationGeneratorTaskExecutor>(TerragruntConfigurationGeneratorTaskExecutor).toSelf().inSingletonScope();
66container.bind<TerraformTaskExecutor>(TerraformTaskExecutor).toSelf().inSingletonScope();
67export default container;