Revision d1e614b5
Added by Marc Dequènes over 14 years ago
- ID d1e614b5a5c73383da00fa52e7447e2d8e7f7d9f
lib/cyborghood/cyborg/server.rb | ||
---|---|---|
#++
|
||
|
||
require 'eventmachine'
|
||
require 'cyborghood/cyborg/interface'
|
||
|
||
|
||
module CyborgHood
|
||
... | ... | |
"unix_socket/#{@signature}"
|
||
end
|
||
end
|
||
|
||
module SimpleServer
|
||
def setup
|
||
super
|
||
@server = BotServer.build(self.interface)
|
||
end
|
||
|
||
def run
|
||
super
|
||
@server.run
|
||
end
|
||
|
||
def ask_to_stop
|
||
@server.stop
|
||
super
|
||
end
|
||
|
||
def interface
|
||
CyborgServerInterface
|
||
end
|
||
end
|
||
end
|
Also available in: Unified diff
[cleanup] reorganize/split cyborg interface code