haproxy 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/haproxy/socket_reader.rb +10 -0
- data/lib/haproxy/version.rb +1 -1
- metadata +2 -2
@@ -68,6 +68,16 @@ module HAProxy
|
|
68
68
|
end
|
69
69
|
end
|
70
70
|
|
71
|
+
def disable(backend, server)
|
72
|
+
cmd = "disable server #{backend}/#{server}"
|
73
|
+
send_cmd(cmd)
|
74
|
+
end
|
75
|
+
|
76
|
+
def enable(backend, server)
|
77
|
+
cmd = "enable server #{backend}/#{server}"
|
78
|
+
send_cmd(cmd)
|
79
|
+
end
|
80
|
+
|
71
81
|
def frontends
|
72
82
|
stats :frontend, :proxy => :all, :server => :all
|
73
83
|
end
|
data/lib/haproxy/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: haproxy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-09-27 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: This gem is intended for use as a HAProxy interface when you need to
|
15
15
|
read statistics or if you like to manage proxies thru Ruby
|