UNPKG

singularci

Version:

SingularCI is a DSL transpiler used to generate CI/CD configuration files for existing CI platforms

32 lines 1.25 kB
"use strict"; var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; Object.defineProperty(exports, "__esModule", { value: true }); const typedi_1 = require("typedi"); const TaskEnum_1 = require("./TaskEnum"); let RunFactory = class RunFactory { createRunTask(commands) { return new Run(commands); } }; RunFactory = __decorate([ (0, typedi_1.Service)({ id: "RunFactory" }) ], RunFactory); exports.default = RunFactory; class Run { constructor(commands) { this.commands = commands; this.type = TaskEnum_1.TaskType.Run; } getCommands() { return this.commands; } getType() { return this.type; } } //# sourceMappingURL=Run.js.map