RunnerFile
This service is in charge of creating, validating and updating the runner file this plugin uses to store the information about the builded targets and how to execute them.
Constructor Summary
Public Constructor | ||
public |
constructor(info: Object, pathUtils: PathUtils) Class constructor. |
Member Summary
Public Members | ||
public |
The file default template. |
|
public |
The name of the runner file. |
|
public |
The path to the runner file. |
Method Summary
Public Methods | ||
public |
Checks whether the file exists or not. |
|
public |
Get the name of the runner file. |
|
public |
Read the contents of the runner file. |
|
public |
setFilename(newName: string) Set the name of the runner file. |
|
public |
Updates the runner file with a new build information. |
|
public |
updateVersion(version: string): * Updates the runner file with a new version of the project. |
Public Constructors
Public Members
Public Methods
public read(): RunnerFileContents source
Read the contents of the runner file. If the file doesn't exist, it will create it with
the default template (this.fileTemplate
).
public setFilename(newName: string) source
Set the name of the runner file.
Params:
Name | Type | Attribute | Description |
newName | string | The new name. |
TODO:
- Update the `filepath`