diff --git a/README.md b/README.md index d8e3f44..4f9d533 100644 --- a/README.md +++ b/README.md @@ -16,6 +16,8 @@ By default it will report the following events but those can be extended: 2. Copy the content of `hooks.json.sample` on `/lib/hooks/hooks.json` to inform Flor about the new hooks. This is where you can extend the events you want to monitor. + - Remember to keep the quotes around `points` (e.g. `point: "return"`) to + avoid issues with reserved keywords. 3. By default Pollen will contact your hook handler at `http://localhost:3000/hookhandler/`. This can be controlled through Flor/Flack's configuration (`/etc/conf.json`) as follow: diff --git a/hooks.json.sample b/hooks.json.sample index 34135ca..e987d16 100644 --- a/hooks.json.sample +++ b/hooks.json.sample @@ -1,7 +1,7 @@ [ - { point: execute, consumed: true, nid: '0', require: 'pollen/pollen.rb', class: 'LaunchedPollenHook' }, - { point: return, consumed: true, require: 'pollen/pollen.rb', class: 'ReturnedPollenHook' }, - { point: terminated, consumed: true, require: 'pollen/pollen.rb', class: 'TerminatedPollenHook' }, + { point: "execute", consumed: true, nid: '0', require: 'pollen/pollen.rb', class: 'LaunchedPollenHook' }, + { point: "return", consumed: true, require: 'pollen/pollen.rb', class: 'ReturnedPollenHook' }, + { point: "terminated", consumed: true, require: 'pollen/pollen.rb', class: 'TerminatedPollenHook' }, { error: true, require: 'pollen/pollen.rb', class: 'ErrorPollenHook' }, { cancel: true, require: 'pollen/pollen.rb', class: 'CancelPollenHook' } ]