diff options
Diffstat (limited to 'lib/rainbows.rb')
-rw-r--r-- | lib/rainbows.rb | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/lib/rainbows.rb b/lib/rainbows.rb new file mode 100644 index 0000000..cb08ca3 --- /dev/null +++ b/lib/rainbows.rb @@ -0,0 +1,21 @@ +# -*- encoding: binary -*- +require 'unicorn' + +module Rainbows + + require 'rainbows/const' + require 'rainbows/configurator' + require 'rainbows/http_server' + require 'rainbows/http_response' + + autoload :Revactor, 'rainbows/revactor' + autoload :ThreadBase, 'rainbows/thread_base' + autoload :ThreadPool, 'rainbows/thread_pool' + + class << self + def run(app, options = {}) + HttpServer.new(app, options).start.join + end + end + +end |