lib/twib.rb in twib-0.1.2 vs lib/twib.rb in twib-0.1.3
- old
+ new
@@ -95,10 +95,10 @@
# A connection to twibd.
class TwibConnection
# Connects to twibd using the standard UNIX socket address.
# @return [TwibConnection]
def self.connect_unix
- return self.new(UNIXSocket.new("/var/run/twibd.sock"))
+ return self.new(UNIXSocket.new(ENV["TWIB_UNIX_FRONTEND_PATH"] || "/var/run/twibd.sock"))
end
# Creates a TwibConnection using the specified socket
# @param [BasicSocket] socket
def initialize(socket)