commit | d7ecda92e39f9c7853853c498edc7dac00509180 | [log] [tgz] |
---|---|---|
author | Jason Peterson <jasonpet@us.ibm.com> | Tue Nov 01 15:03:32 2016 -0400 |
committer | Jason Peterson <jasonpet@us.ibm.com> | Tue Nov 01 15:03:32 2016 -0400 |
tree | e6a7f11bc3043a1e12725b7849696bd5acf0dd19 | |
parent | e7822c7818e2aad996979db6c3bed953b83d575e [diff] |
adding install script for actions
This is still very much a work-in-progress.
RESTful service to listen for changes to a Cloudant database.
Changes to a Cloudant database can trigger the invocation of an action, passing the action the body of the updated document.
See the scripts directory for examples on how to register a new Cloudant trigger.
The following commands will test the Cloudant trigger service:
cd <bluewhisk_home> gradle distDocker
Follow the instructions in [ansible/README.md][../../../ansible/README.md]
./bin/wsk create HELLOCLOUDANT ./actions/hellocloudant.js ./catalog/providers/cloudantTrigger/scripts/addTestTriggers.sh
./catalog/providers/cloudantTrigger/scripts/addNewDocument.sh
You should see the output from invoking the HELLOCLOUDANT action in the ELK logs.