UNPKG

@manuth/woltlab-compiler

Version:

A compiler for generating WoltLab-Package `.tar` Archives and other WoltLab-Package Components

49 lines 1.32 kB
import { CronJobInstructionCompiler } from "../../../Compilation/PackageSystem/Instructions/CronJobInstructionCompiler.js"; import { CronJob } from "../../../Tasks/CronJob.js"; import { NamedDeleteInstruction } from "../NamedDeleteInstruction.js"; /** * Represents an instruction which install cron-jobs. */ export class CronJobInstruction extends NamedDeleteInstruction { /** * Initializes a new instance of the {@link CronJobInstruction `CronJobInstruction`} class. * * @param options * The options of the cron-job instruction. */ constructor(options) { super(options); /** * The cron-jobs provided by the instruction. */ this.cronJobs = []; for (let cronJob of options.CronJobs) { this.CronJobs.push(new CronJob(cronJob)); } } /** * @inheritdoc */ get Type() { return "cronjob"; } /** * Gets or sets the cron-jobs provided by the instruction. */ get CronJobs() { return this.cronJobs; } /** * @inheritdoc */ set CronJobs(value) { this.cronJobs = value; } /** * @inheritdoc */ get Compiler() { return new CronJobInstructionCompiler(this); } } //# sourceMappingURL=CronJobInstruction.js.map