Hi
On Aug 18, 3:03 pm, Kornev Ruslan aka woto <[email protected]> wrote:
> Hi, sorry for bad English.
> Is there a way to specify a path for socket file?
Wat I did was overriding the methods of the God::Socket class
The example below can be added to a God config file.
The string returned by socket_file in this example is the default.
I suggest that you peek at the sources in lib/god.rb and lib/god/
socket.rb to see how it works
Greets, Ferengee
require "socket"
module God
class Socket
def self.socket_file(port)
"/tmp/god.#{port}.sock"
end
end
end
--
You received this message because you are subscribed to the Google Groups
"god.rb" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/god-rb?hl=en.