global_error_handler 0.1.11 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +15 -0
- data/lib/global_error_handler/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b756cc40aa38a46832768117f7e6ca959c505e14
|
4
|
+
data.tar.gz: 1af49d0977f55587fff47a9582f35a36dbcaf3f2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6cf989422e07a98f1ada0809a222c8f884c3dbcd8024e2ebdca16e6485dbac0f7d10f6d801e61da5d29de7c6f025f61ca00d09a541c8e9ab7a5d760e3182fabc
|
7
|
+
data.tar.gz: c6c3a8b04f883483a54376a551901ca23a7cb2f04b8a372f424e8fb0ed582ff99d41c40656e36d976c4bf1e35f59c268cb3f83898cdb0b43dc03fdf589bd8937
|
data/README.md
CHANGED
@@ -70,6 +70,21 @@ In case to stop subscription, run following below command
|
|
70
70
|
rake global_error_handler:unsubscribe_from_expired
|
71
71
|
```
|
72
72
|
|
73
|
+
There are Capistrano recipes that run desired rake tasks on the remote server
|
74
|
+
* global_error_handler:subscribe
|
75
|
+
* global_error_handler:unsubscribe
|
76
|
+
* global_error_handler:update_subscription
|
77
|
+
|
78
|
+
```ruby
|
79
|
+
after 'deploy:restart', 'global_error_handler:update_subscription'
|
80
|
+
```
|
81
|
+
|
82
|
+
In case to subscribe automatically after being deployed, add following require into `deploy.rb`
|
83
|
+
|
84
|
+
```ruby
|
85
|
+
require 'global_error_handler/capistrano_recipes'
|
86
|
+
```
|
87
|
+
|
73
88
|
## Data structure
|
74
89
|
Redis database data structure contains following below keys:
|
75
90
|
- 'global_error_handler:current_id' : *STRING* - stores current id of an exception. It is being incremented on adding new exception into database
|