README.md in capistrano-ops-0.2.0 vs README.md in capistrano-ops-0.2.1
- old
+ new
@@ -67,20 +67,21 @@
port: database_port
```
### Optional Settings for backup task
-| env | description | type/options |
-| ----------------- | ---------------------------------------------------------------------- | :----------------------------------------------------------------: |
-| NUMBER_OF_BACKUPS | number of backups to keep (default: 1) | `number` |
-| BACKUPS_ENABLED | enable/disable backup task (default: Rails.env == 'production') | `boolean` |
-| DEFAULT_URL | notification message title (default: "#{database} Backup") | `string` |
-| NOTIFICATION_TYPE | for notification (default: nil) | `string` (`webhook`/`slack`) |
-| SLACK_SECRET | for slack integration | `string` (e.g. `xoxb-1234567890-1234567890-1234567890-1234567890`) |
-| SLACK_CHANNEL | for slack integration | `string` (e.g. `C234567890`) |
-| WEBHOOK_URL | Webhook server to send message | e.g `http://example.com` |
-| WEBHOOK_SECRET | Secret to send with uses md5-hmac hexdigest in header`x-hub-signature` | --- |
+| env | description | type/options |
+| ------------------ | ---------------------------------------------------------------------- | :----------------------------------------------------------------: |
+| NUMBER_OF_BACKUPS | number of backups to keep (default: 1) | `number` |
+| BACKUPS_ENABLED | enable/disable backup task (default: Rails.env == 'production') | `boolean` |
+| DEFAULT_URL | notification message title (default: "#{database} Backup") | `string` |
+| NOTIFICATION_TYPE | for notification (default: nil) | `string` (`webhook`/`slack`) |
+| NOTIFICATION_LEVEL | for notification (default: nil) | `string` (`info`/`error`) |
+| SLACK_SECRET | for slack integration | `string` (e.g. `xoxb-1234567890-1234567890-1234567890-1234567890`) |
+| SLACK_CHANNEL | for slack integration | `string` (e.g. `C234567890`) |
+| WEBHOOK_URL | Webhook server to send message | e.g `http://example.com` |
+| WEBHOOK_SECRET | Secret to send with uses md5-hmac hexdigest in header`x-hub-signature` | --- |
### use with whenever/capistrano
install whenever gem and add this to your schedule.rb
@@ -131,9 +132,17 @@
```ruby
NOTIFICATION_TYPE: 'webhook'
WEBHOOK_URL: '<your-webhook-url>'
WEBHOOK_SECRET: '<your-webhook-secret>'
+```
+
+## Notification level
+
+if you want to use notification level you have to add this to your `application.yml`
+
+```ruby
+NOTIFICATION_LEVEL: 'info' # default is 'error'
```
## Contributing
1. Fork it ( https://github.com/zauberware/capistrano-ops/fork )