class EmmyExtends::Thin::Backend
Attributes
url[RW]
Public Class Methods
new(host, port, options)
click to toggle source
Calls superclass method
# File lib/emmy_extends/thin/backend.rb, line 5 def initialize(host, port, options) super() end
Public Instance Methods
connect()
click to toggle source
# File lib/emmy_extends/thin/backend.rb, line 9 def connect raise "deprecated. you should start server through emmy.bind" end
disconnect()
click to toggle source
Stops the server
# File lib/emmy_extends/thin/backend.rb, line 18 def disconnect #puts "disconnect" #EventMachine.stop_server(@signature) end
initialize_connection(conn)
click to toggle source
Calls superclass method
# File lib/emmy_extends/thin/backend.rb, line 23 def initialize_connection(conn) @stopping = false thin_connection = ::Thin::Connection.new(conn.signature) thin_connection.backend = self conn.delegate = thin_connection super(thin_connection) @running = true # FIXME: maybe not here conn.delegate.post_init end
start()
click to toggle source
# File lib/emmy_extends/thin/backend.rb, line 13 def start raise "deprecated. you should start server through emmy.bind" end
to_a()
click to toggle source
# File lib/emmy_extends/thin/backend.rb, line 33 def to_a [url, EmmyExtends::Thin::Connection, method(:initialize_connection)] end
to_s()
click to toggle source
# File lib/emmy_extends/thin/backend.rb, line 37 def to_s "#{@host}:#{@port}" end