Class: PlatformTemplateService

PlatformTemplateService()

Utility class that helps you read and validate platfor templates from file system

Constructor

new PlatformTemplateService()

Source:

Methods

(static) fakeValidateTemplate(platformTemplate) → {PlatformTemplate}

Validates the template
Parameters:
Name Type Description
platformTemplate PlatformTemplate File path to platform templates json
Source:
Returns:
@Async - List of platform templates
Type
PlatformTemplate
Example
const platformTemplate = PlatformTemplateService.readFromFile('./platforms.json')

(static) readFromFile(path) → {Array.<PlatformTemplate>}

Read and validat platform template(s) from file system
Parameters:
Name Type Description
path string File path to platform templates json
Source:
Returns:
@Async - List of platform templates
Type
Array.<PlatformTemplate>
Example
const platformTemplate = PlatformTemplateService.readFromFile('./platforms.json')