capistrano_sentinel 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ffc62cfd3cdec15cda790fc77c083bfece90a09b
|
4
|
+
data.tar.gz: b945394ca3009dbb7994d5e60e504c442d1bc893
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 79493dd401dfd62987ca5f02e8c67e03b7347f673f756bf300890b4c2350f2dea13d1eeedc4f6d2d9dda0563381b96c9c8fa445c80c7a0a21935bea3a8bd7f6e
|
7
|
+
data.tar.gz: cd7acde38ad0f194c3efc35d542ea7bea48cbe839d2ef040b5471c7ba45b0c3212633aeceb4f22361ee8dda839605846b03bb2627766fb28c11660338e0f206d
|
@@ -54,7 +54,7 @@ module CapistranoSentinel
|
|
54
54
|
}
|
55
55
|
|
56
56
|
@on_close = lambda { |message|
|
57
|
-
log_to_file("
|
57
|
+
log_to_file("#{@actor.class} client received on_close #{message.inspect}")
|
58
58
|
if @actor.present? && @actor.respond_to?(:on_close)
|
59
59
|
if @actor.respond_to?(:async)
|
60
60
|
@actor.async.on_close(message)
|
@@ -65,7 +65,7 @@ module CapistranoSentinel
|
|
65
65
|
}
|
66
66
|
|
67
67
|
@on_ping = lambda { |message|
|
68
|
-
log_to_file("
|
68
|
+
log_to_file("#{@actor.class} client received PING #{message.inspect}")
|
69
69
|
if @actor.present? && @actor.respond_to?(:on_ping)
|
70
70
|
if @actor.respond_to?(:async)
|
71
71
|
@actor.async.on_ping(message)
|
@@ -76,7 +76,7 @@ module CapistranoSentinel
|
|
76
76
|
}
|
77
77
|
|
78
78
|
@on_error = lambda { |error|
|
79
|
-
log_to_file("
|
79
|
+
log_to_file("#{@actor.class} received ERROR #{error.inspect} #{error.backtrace}")
|
80
80
|
if @actor.present? && @actor.respond_to?(:on_error)
|
81
81
|
if @actor.respond_to?(:async)
|
82
82
|
@actor.async.on_error(error)
|
@@ -88,7 +88,7 @@ module CapistranoSentinel
|
|
88
88
|
|
89
89
|
@on_message = lambda { |message|
|
90
90
|
message = parse_json(message)
|
91
|
-
log_to_file("#{@actor.
|
91
|
+
log_to_file("#{@actor.class} websocket client received JSON #{message}")
|
92
92
|
if @actor.present? && @actor.respond_to?(:async)
|
93
93
|
@actor.async.on_message(message)
|
94
94
|
else
|
@@ -194,7 +194,7 @@ module CapistranoSentinel
|
|
194
194
|
#+type+:: :text or :binary, defaults to :text
|
195
195
|
def send_data(data, type = :text)
|
196
196
|
pid = Thread.new do
|
197
|
-
log_to_file("#{@actor.
|
197
|
+
log_to_file("#{@actor.class} calls send: #{data}")
|
198
198
|
do_send(data, type)
|
199
199
|
end
|
200
200
|
end
|