From 87b792445e5e38291fc50b6c3b825a63e9adf130 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Fri, 30 Apr 2010 00:47:28 +0000 Subject: add global Unicorn.listener_names method This is useful as a :listeners argument when setting up Raindrops::Middleware (http://raindrops.bogomips.org/), as it can be done automatically. --- lib/unicorn/socket_helper.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/unicorn') diff --git a/lib/unicorn/socket_helper.rb b/lib/unicorn/socket_helper.rb index 09085e5..9a4266d 100644 --- a/lib/unicorn/socket_helper.rb +++ b/lib/unicorn/socket_helper.rb @@ -136,6 +136,8 @@ module Unicorn end end + module_function :sock_name + # casts a given Socket to be a TCPServer or UNIXServer def server_cast(sock) begin -- cgit v1.2.3-24-ge0c7