@puppedo/atoms
Version:
Atoms for PuppeDo
15 lines (11 loc) • 516 B
YAML
name: runnerCheck
type: atom
bindDescription: "`Check runner: '${runnerName}'`"
needData: ['runnerName']
allowResults: ['running', 'available']
inlineJS: >
const runnerName = this.data.runnerName;
const running = !!this.allRunners.getRunnerByName(runnerName);
const available = this.allData && this.allData.runners.map(v => v.name).includes(runnerName);
await this.log({ text: `Runner check: '${runnerName}'. Running: ${running}. Available: ${available}` });
return { running, available }