UNPKG

@wmfs/tymly

Version:

A framework for building and sharing workflows in Node.js

12 lines (10 loc) 352 B
module.exports = class GetRegistryKey { init (resourceConfig, env) { this.registry = env.bootedServices.registry } run (event, context) { this.registry.clear(event.key) .then(() => context.sendTaskSuccess()) .catch(err => context.sendTaskFailure({ error: 'ClearRegistryKeyFail', cause: err })) } // run } // GetRegistryKey