Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

integration-docs: Update Capistrano for new doc format.

Niloth Pa6fce7982e57
diff --git a/templates/zerver/integrations/capistrano.md b/templates/zerver/integrations/capistrano.md
index a97ed53eb05..943a610802c 100644
--- a/templates/zerver/integrations/capistrano.md
+++ b/templates/zerver/integrations/capistrano.md
@@ -1,12 +1,18 @@
+# Zulip Capistrano Integration
+
Get Zulip notifications for your Capistrano deploys!
+{start_tabs}
+
1. {!create-an-incoming-webhook.md!}
1. {!download-python-bindings.md!}
1. You can now send Zulip messages by calling the `zulip-send`
- utility from your `deploy.rb` config file. Here's some example code for
- sending a Zulip notification when a deployment has completed:
+ utility from your `deploy.rb` config file.
+
+1. Here's some example code for sending a Zulip notification when a
+ deployment has completed:
after 'deploy', 'notify:humbug'
@@ -20,20 +26,25 @@ Get Zulip notifications for your Capistrano deploys!
end
end
- The `--user` and `--api-key` should be the email and API key of the Zulip
- bot created above. You can also put these values in a `~/.zuliprc` file on
- your Capistrano machine. See our [API docs](/api/) for instructions on
- creating that file.
+ Use your bot's email address and [API key][3] for `--user` and
+ `--api-key` respectively.
-!!! tip ""
-
- You can change the `deploy` above to another step of
- your deployment process, if you'd like the notification to fire
- at a different time. See [Capistrano's Before/After Hooks page][1]
- for more information!
-
-[1]: https://capistranorb.com/documentation/getting-started/before-after/
+{end_tabs}
{!congrats.md!}
![Capistrano bot message](/static/images/integrations/capistrano/001.png)
+
+### Configuration Options
+
+* Customize the notification trigger by replacing `deploy` in the above
+ example with [any stage][1] of your deployment process.
+
+### Related documentation
+
+* [Capistrano's Before/After Hooks][1]
+* [Configuring the Python bindings][2]
+
+[1]: https://capistranorb.com/documentation/getting-started/before-after/
+[2]: https://zulip.com/api/configuring-python-bindings
+[3]: https://zulip.com/api/api-keys#get-a-bots-api-key