Constructor
new NestorBuildLight(opts:)
- Source:
Parameters:
Name | Type | Description |
---|---|---|
opts: |
String
|
optional - map: status-colour map, defaults to { OK: 'green', FAIL: 'red', WARN: 'blue' } - scheme: color scheme array, defaults to [ 'red', 'green', 'blue' ] scheme allows flexibility to use BuildLight with various Delcom devices (RGB, RGY) - usbled: path to usbled installation, if not specified then it will try to find a usbled installation at /sys/bus/usb/drivers/usbled/ - platform: override platform, used by unit tests to override buildlight platform - blinkOnFailure: if true then build light will display blinking red, otherwise display red without blinking |
Methods
notify(status:)
Notify build status as a colour on Delcom USB Visual Indocator build light.
Device color schemes contain red and green, which are used for OK and FAIL statuses.
While blue or yellow is used to represent a WARN.
Unknown/other status will be represented as all colors switched on.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
status: |
String
|
build status |