/usr/lib/ruby/vendor_ruby/merb-core/rack/adapter/ebb.rb is in ruby-merb-core 1.1.3+dfsg-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | require 'ebb'
module Merb
module Rack
class Ebb < Merb::Rack::AbstractAdapter
# start an Ebb server on given host and port.
# :api: plugin
def self.new_server(port)
Merb::Dispatcher.use_mutex = false
opts = @opts.merge(:port => port)
@th = Thread.new { Thread.current[:server] = ::Ebb.start_server(opts[:app], opts) }
end
# :api: plugin
def self.start_server
@th.join
end
# :api: plugin
def self.stop(status = 0)
::Ebb.stop_server
end
end
end
end
|