boutons 0.1.4 → 0.1.5
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/lib/boutons/version.rb +1 -1
- data/lib/boutons.rb +6 -6
- 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: 74b5abc6728dce0dcf5c43f5c38a6c61ad879f1b
|
|
4
|
+
data.tar.gz: 778cdd570c230f62e57e265feec3eda51e4f5233
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d646f87a510789110a12da5215e34e4e9d13d8bea58f361a66aa05fa91191587e738b2e5f1c3c12d5eaa1841cb6897c2fa166cd2c8b0db54eb1ce3d2c1516c7f
|
|
7
|
+
data.tar.gz: 4ad6e13ef67b19ac5146c259db0425dc079204e1b05677e51562640059e92bb5b4bc32fa91239d964b9f2b96a99e3563773b29bdbc9df9cf7e26bf23c1005776
|
data/lib/boutons/version.rb
CHANGED
data/lib/boutons.rb
CHANGED
|
@@ -58,12 +58,6 @@ module Boutons
|
|
|
58
58
|
return unless @@synapse
|
|
59
59
|
@@services.map{|n,s|s.active=true}
|
|
60
60
|
@@haproxy.inform @@synapse
|
|
61
|
-
@@services.inform @@synapse
|
|
62
|
-
@@synapse.services = @@services
|
|
63
|
-
@@synapse_thread = Thread.new do
|
|
64
|
-
@@synapse.run
|
|
65
|
-
end
|
|
66
|
-
wait
|
|
67
61
|
at_exit do
|
|
68
62
|
@@logger.info "HAproxy cleanup begin"
|
|
69
63
|
pf = @@haproxy.pid_file_path
|
|
@@ -77,6 +71,12 @@ module Boutons
|
|
|
77
71
|
File.unlink(cf)
|
|
78
72
|
@@logger.info "HAproxy cleanup finish"
|
|
79
73
|
end
|
|
74
|
+
@@services.inform @@synapse
|
|
75
|
+
@@synapse.services = @@services
|
|
76
|
+
@@synapse_thread = Thread.new do
|
|
77
|
+
@@synapse.run
|
|
78
|
+
end
|
|
79
|
+
wait
|
|
80
80
|
end
|
|
81
81
|
def wait
|
|
82
82
|
loop do
|