PawSource
import { PawSource } from "@skipcheck/tm1-testcontainers"; Where a PawContainer gets Planning Analytics Workspace from: IBM's PAW Local
zip, ipa_workspace_local_<release>.<build>.zip.
IBM ships PAW Local as Docker images, compose files and scripts in that zip. Nothing
from it is in this library, so every PawContainer needs one.
discover finds one from the environment. Each setting is read first as a
system property and then as an environment variable, under the same name, the names
docker/paw/paw-local.sh uses:
PAW_ZIP: the zip itselfPAW_BUNDLE_DIR: a folder holding it; the newestipa_workspace_local_*.zipthere is used
Members
ZIP property | The PAW Local zip to use. |
BUNDLE_DIR property | A folder holding PAW Local zips. |
zip property | The zip, absolute. |
PawSource constructor | @throws IllegalArgumentException if it isn't a file |
describe | A short description for logs and messages. |
toString | The description (describe), for logs. |
discover static | Finds the zip set with PAW_ZIP, or else the newest in PAW_BUNDLE_DIR, using lookup (environment variables by default). |
ZIP
propertystatic ZIPThe PAW Local zip to use.
BUNDLE_DIR
propertystatic BUNDLE_DIRA folder holding PAW Local zips: the newest is used.
zip
propertyzip: stringThe zip, absolute.
PawSource
constructorconstructor(zip: string)@throws IllegalArgumentException if it isn't a file
describe
describe(): stringA short description for logs and messages.
toString
toString(): stringThe description (describe), for logs.
discover
staticstatic discover(lookup: Lookup = Settings.get): PawSource | undefinedFinds the zip set with PAW_ZIP, or else the newest in PAW_BUNDLE_DIR, using lookup (environment variables by default).
Returns
- the source, or
undefinedwhen neither is set
Throws
- IllegalArgumentException if a setting is present but wrong