bin/metrics-haproxy.rb in sensu-plugins-haproxy-0.0.3 vs bin/metrics-haproxy.rb in sensu-plugins-haproxy-0.0.4
- old
+ new
@@ -100,10 +100,10 @@
short: '-i SECONDS',
long: '--retry_interval SECONDS',
default: 1,
proc: proc(&:to_i)
- def acquire_stats # rubocop:disable all
+ def acquire_stats
uri = URI.parse(config[:connection])
if uri.is_a?(URI::Generic) && File.socket?(uri.path)
socket = UNIXSocket.new(config[:connection])
socket.puts('show stat')