API Docs for: 0.9.0
Show:

FileStorageAdapter Class

File storage adapter

Constructor

FileStorageAdapter

(
  • options
)

Parameters:

Methods

_getApprovedPath

() String private

Gets the approved path

Returns:

_getBuildPath

() String private

Gets the build path

Returns:

_getHighlightPath

() String private

Gets the highlight path

Returns:

_getPath

() String private

Gets the processing path

Returns:

_pngFilter

(
  • filename
)
Boolean private

List filter for png extensions

Parameters:

Returns:

_prepareFolder

() private

Prepares the output folder

_readDir

(
  • path
)
String[] private

Reads a directory an returns all files found in the folder

Parameters:

Returns:

_readDirAndFilter

(
  • path
)
String[] private

Reads a directory and filters for png files, removing the extensions

Parameters:

Returns:

_readImage

(
  • path
)
Promise private

Reads an image and returns a promise

Parameters:

Returns:

Promise:

With {PNGImage} Image

_writeImage

(
  • path
  • image
)
Promise private

Writes an image and returns a promise

Parameters:

Returns:

Promise:

archiveApprovedScreen

(
  • name
  • image
)
Promise

Archives a specific approved screen

Parameters:

  • name String

    Name of approved screen

  • image PNGImage

    Screen to archive

Returns:

Promise:

archiveBuildScreen

(
  • name
  • image
)
Promise

Archives a specific build screen

Parameters:

  • name String

    Name of build screen

  • image PNGImage

    Screen to archive

Returns:

Promise:

archiveCurrentApprovedScreen

(
  • name
  • image
)
Promise

Archives a specific currently approved screen

Parameters:

  • name String

    Name of approved screen

  • image PNGImage

    Screen to archive

Returns:

Promise:

archiveHighlightScreen

(
  • name
  • image
)
Promise

Archives a specific highlight screen

Parameters:

  • name String

    Name of highlight screen

  • image PNGImage

    Screen to archive

Returns:

Promise:

getApprovedScreen

(
  • name
)
Promise

Gets a specific approved screen

Parameters:

  • name String

    Name of approved screen

Returns:

Promise:

With {PNGImage} Approved screen

getApprovedScreenNames

() Promise

Gets a list of approve screen names

Returns:

Promise:

With {string[]} List of approved screen names

getBuildScreen

(
  • name
)
Promise

Gets a specific build screen

Parameters:

  • name String

    Name of build screen

Returns:

Promise:

With {PNGImage}

getBuildScreenNames

() Promise

Gets a list of build screen names

Returns:

Promise:

With {string[]} List of build screen names

getCurrentApprovedScreen

(
  • name
)
Promise

Gets a specific currently approved screen

Parameters:

  • name String

    Name of approved screen

Returns:

Promise:

With {PNGImage} Approved screen

getCurrentApprovedScreenNames

() Promise

Gets a list of currently approve screen names

Returns:

Promise:

With {string[]} List of approved screen names

getHighlightScreen

(
  • name
)
Promise

Gets a specific highlight screen

Parameters:

  • name String

    Name of highlight screen

Returns:

Promise:

With {PNGImage}

getHighlightScreenNames

() Promise

Gets a list of highlight screen names

Returns:

Promise:

With {string[]} List of highlight screen names

getPromise

() Promise

Gets the source-adapter promise

Returns:

Promise:

initialize

()

Initializes the source-adapter

setBuild

(
  • build
)

Sets the build information

Parameters:

setPromise

(
  • promise
)

Sets the promise

Parameters:

  • promise Promise

Properties

TYPE

String

Type of class