haproxy 0.0.5 → 0.0.6

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.
@@ -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
@@ -1,3 +1,3 @@
1
1
  module HAProxy
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
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.5
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-08-30 00:00:00.000000000 Z
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