capistrano_sentinel 0.0.14 → 0.0.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +13 -0
- data/capistrano_sentinel.gemspec +1 -1
- data/lib/capistrano_sentinel/classes/request_worker.rb +1 -1
- data/lib/capistrano_sentinel/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1cc01aa8dc3ee91a8dc14215e8feef1287da0c87
|
|
4
|
+
data.tar.gz: 51d882889f47d5996e5be5c8c1581bd902f08037
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e1ec7fe7b1dcc97bdf12447464e3f211d0870da529a5d65fef1dcc0c26f0481fbdadad75328930f40f9e22db9f55f7904a71cf1bf59ddc95fb4dcab5de2c1db5
|
|
7
|
+
data.tar.gz: c853ec02a1571d484ab18098e6dfafad1ab29c0723b5a8dbeba7644d624c03efdf081bcaaad13a2b552fcc42ed5307f5cdc3df26f26fe1a8454209f61b630a58
|
data/README.md
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
capistrano_sentinel
|
|
2
2
|
===================
|
|
3
3
|
|
|
4
|
+
[](http://badge.fury.io/rb/capistrano_sentinel) [](https://github.com/bogdanRada/capistrano_sentinel) [](https://github.com/bogdanRada/capistrano_sentinel)
|
|
5
|
+
|
|
4
6
|
Overview
|
|
5
7
|
--------
|
|
6
8
|
|
|
@@ -85,6 +87,17 @@ Configuration options
|
|
|
85
87
|
end
|
|
86
88
|
```
|
|
87
89
|
|
|
90
|
+
First time when running a task will subscribe to a channel using this format message:
|
|
91
|
+
|
|
92
|
+
```ruby
|
|
93
|
+
{
|
|
94
|
+
"client_action":"subscribe",
|
|
95
|
+
"channel":"rake_worker_<job_id>",
|
|
96
|
+
}
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
If you want to see how this is handled you can check the implementation here for the websocket server and reactor:[celluloid_pubsub](https://github.com/bogdanRada/celluloid_pubsub)
|
|
100
|
+
|
|
88
101
|
All websocket messages are published in this format:
|
|
89
102
|
|
|
90
103
|
```ruby
|
data/capistrano_sentinel.gemspec
CHANGED
|
@@ -13,7 +13,7 @@ module CapistranoSentinel
|
|
|
13
13
|
@options = options.stringify_keys
|
|
14
14
|
default_settings
|
|
15
15
|
socket_client.actor = self
|
|
16
|
-
publish_to_worker(task_data) if options['subscribed'].present?
|
|
16
|
+
publish_to_worker(task_data) if CapistranoSentinel.config.wait_execution && options['subscribed'].present?
|
|
17
17
|
end
|
|
18
18
|
|
|
19
19
|
def wait_execution(name = task_name, time = 0.1)
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: capistrano_sentinel
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.15
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- bogdanRada
|
|
@@ -67,7 +67,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
67
67
|
requirements:
|
|
68
68
|
- - ">="
|
|
69
69
|
- !ruby/object:Gem::Version
|
|
70
|
-
version: '
|
|
70
|
+
version: '2.0'
|
|
71
71
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
72
72
|
requirements:
|
|
73
73
|
- - ">="
|