UNPKG

processus

Version:
32 lines (29 loc) 872 B
--- name: demo19 description: A example of using the fileHandler to save and read a file. tasks: save json file: blocking: true handler: "../taskhandlers/fileHandler" parameters: file: name: ./test/a-json-file.json contents: some object: property1: true property2: "is a string" property3: 42 read json file: blocking: true handler: "../taskhandlers/fileHandler" parameters: file: name: ./test/a-json-file.json contents: # note, we leave the contents blank to imply a read read non json file: blocking: true handler: "../taskhandlers/fileHandler" parameters: file: name: ./test/a-non-json-file.txt contents: # note, we leave the contents blank to imply a read