about summary refs log tree commit homepage
path: root/lib/rainbows.rb
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-10-02 20:44:03 -0700
committerEric Wong <normalperson@yhbt.net>2009-10-02 21:21:28 -0700
commit37a12997628fcab722512f8a6370b92d44e33529 (patch)
tree9ced4ceaee3d4d6ce21dd1742f037d1d79a01e61 /lib/rainbows.rb
downloadrainbows-37a12997628fcab722512f8a6370b92d44e33529.tar.gz
No tests yet, but the old "gossamer" and "rainbows" branches
seem to be basically working.
Diffstat (limited to 'lib/rainbows.rb')
-rw-r--r--lib/rainbows.rb21
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