FileStorageAdapter Class
File storage adapter
Constructor
Item Index
Methods
- _getApprovedPath
- _getBuildPath
- _getHighlightPath
- _getPath
- _pngFilter
- _prepareFolder
- _readDir
- _readDirAndFilter
- _readImage
- _writeImage
- archiveApprovedScreen
- archiveBuildScreen
- archiveCurrentApprovedScreen
- archiveHighlightScreen
- getApprovedScreen
- getApprovedScreenNames
- getBuildScreen
- getBuildScreenNames
- getCurrentApprovedScreen
- getCurrentApprovedScreenNames
- getHighlightScreen
- getHighlightScreenNames
- getPromise
- initialize
- setBuild
- setPromise
Properties
Methods
_pngFilter
-
filename
List filter for png extensions
Parameters:
-
filename
String
Returns:
_prepareFolder
()
private
Prepares the output folder
_readDir
-
path
Reads a directory an returns all files found in the folder
Parameters:
-
path
String
Returns:
_readDirAndFilter
-
path
Reads a directory and filters for png files, removing the extensions
Parameters:
-
path
String
Returns:
_readImage
-
path
Reads an image and returns a promise
Parameters:
-
path
String
Returns:
With {PNGImage} Image
_writeImage
-
path
-
image
Writes an image and returns a promise
Parameters:
-
path
String -
image
PNGImage
Returns:
archiveApprovedScreen
-
name
-
image
Archives a specific approved screen
Parameters:
-
name
StringName of approved screen
-
image
PNGImageScreen to archive
Returns:
archiveBuildScreen
-
name
-
image
Archives a specific build screen
Parameters:
-
name
StringName of build screen
-
image
PNGImageScreen to archive
Returns:
archiveCurrentApprovedScreen
-
name
-
image
Archives a specific currently approved screen
Parameters:
-
name
StringName of approved screen
-
image
PNGImageScreen to archive
Returns:
archiveHighlightScreen
-
name
-
image
Archives a specific highlight screen
Parameters:
-
name
StringName of highlight screen
-
image
PNGImageScreen to archive
Returns:
getApprovedScreen
-
name
Gets a specific approved screen
Parameters:
-
name
StringName of approved screen
Returns:
With {PNGImage} Approved screen
getApprovedScreenNames
()
Promise
Gets a list of approve screen names
Returns:
With {string[]} List of approved screen names
getBuildScreen
-
name
Gets a specific build screen
Parameters:
-
name
StringName of build screen
Returns:
With {PNGImage}
getBuildScreenNames
()
Promise
Gets a list of build screen names
Returns:
With {string[]} List of build screen names
getCurrentApprovedScreen
-
name
Gets a specific currently approved screen
Parameters:
-
name
StringName of approved screen
Returns:
With {PNGImage} Approved screen
getCurrentApprovedScreenNames
()
Promise
Gets a list of currently approve screen names
Returns:
With {string[]} List of approved screen names
getHighlightScreen
-
name
Gets a specific highlight screen
Parameters:
-
name
StringName of highlight screen
Returns:
With {PNGImage}
getHighlightScreenNames
()
Promise
Gets a list of highlight screen names
Returns:
With {string[]} List of highlight screen names
getPromise
()
Promise
Gets the source-adapter promise
Returns:
initialize
()
Initializes the source-adapter
setPromise
-
promise
Sets the promise
Parameters:
-
promise
Promise