Align CS bootstrap naming
RENAME
src/bootstrap/ChargingStationTemplate.ts
src/bootstrap/ChargingStationTemplateBootstrap.ts
@@ -7,8 +7,8 @@ import { ServerAction } from '../types/Server';
import Utils from '../utils/Utils';
import fs from 'fs';
-export default class ChargingStationBootstrapTemplate {
- public static async updateChargingStationTemplatesFromFile(): Promise<void> {
+export default class ChargingStationTemplateBootstrap {
+ public static async uploadChargingStationTemplatesFromFile(): Promise<void> {
// Read File
let chargingStationTemplates: ChargingStationTemplate[];
try {

MODIFY
src/start.ts
src/start.ts
@@ -4,9 +4,8 @@ import { ServerAction, ServerType } from './types/Server';
import AsyncTaskManager from './async-task/AsyncTaskManager';
import CentralRestServer from './server/rest/CentralRestServer';
import CentralSystemRestServiceConfiguration from './types/configuration/CentralSystemRestServiceConfiguration';
-import ChargingStationBootstrapTemplate from './bootstrap/ChargingStationTemplate';
import ChargingStationConfiguration from './types/configuration/ChargingStationConfiguration';
-import ChargingStationStorage from './storage/mongodb/ChargingStationStorage';
+import ChargingStationTemplateBootstrap from './bootstrap/ChargingStationTemplateBootstrap';
import Configuration from './utils/Configuration';
import Constants from './utils/Constants';
import I18nManager from './utils/I18nManager';
@@ -138,7 +137,7 @@ export default class Bootstrap {
// -------------------------------------------------------------------------
startTimeMillis = await this.logAndGetStartTimeMillis('Charging Station templates is being updated...');
// Load and Save the Charging Station templates
- await ChargingStationBootstrapTemplate.updateChargingStationTemplatesFromFile();
+ await ChargingStationTemplateBootstrap.uploadChargingStationTemplatesFromFile();
// Log
await this.logDuration(startTimeMillis, 'Charging Station templates have been updated successfully');

Align CS bootstrap naming