@manuth/generator-wsc-package
Version:
A Generator for WoltLab Suite Core Packages.
63 lines • 1.62 kB
JavaScript
import { FileInstructionComponent } from "../../../Components/FileInstructionComponent.js";
import { CronJobInstructionFileMapping } from "../FileMappings/CronJobInstructionFileMapping.js";
import { PackageComponentType } from "../Settings/PackageComponentType.js";
/**
* Provides a component for generating cron-jobs.
*
* @template TSettings
* The type of the settings of the generator.
*
* @template TOptions
* The type of the options of the generator.
*
* @template TComponentOptions
* The type of the options of the component.
*/
export class CronJobComponent extends FileInstructionComponent {
/**
* Initializes a new instance of the {@link CronJobComponent `CronJobComponent<TSettings, TOptions, TComponentOptions>`} class.
*
* @param generator
* The generator of the component.
*/
constructor(generator) {
super(generator);
}
/**
* @inheritdoc
*/
get OutputFileName() {
return "cronJobs.xml";
}
/**
* @inheritdoc
*/
get ID() {
return PackageComponentType.CronJob;
}
/**
* @inheritdoc
*/
get DisplayName() {
return "Cron-Jobs";
}
/**
* @inheritdoc
*/
get InstructionFileMapping() {
return new CronJobInstructionFileMapping(this);
}
/**
* @inheritdoc
*
* @param options
* The options which have been provided by the user.
*
* @returns
* The name of the instruction-class.
*/
GetClassName(options) {
return "CronJobInstruction";
}
}
//# sourceMappingURL=CronJobComponent.js.map