Permalink
Browse files

Sample app for testing TORQUE-306

  • Loading branch information...
1 parent 2f909bc commit 27d5c663f7c71dd6bb1cbe312b78d61cc5345749 @jcrossley3 jcrossley3 committed Apr 5, 2011
Showing with 30 additions and 0 deletions.
  1. +2 −0 torque-306/Gemfile
  2. +10 −0 torque-306/Gemfile.lock
  3. +1 −0 torque-306/Rakefile
  4. +4 −0 torque-306/config.ru
  5. +4 −0 torque-306/foo.ru
  6. +7 −0 torque-306/rack_app.rb
  7. +2 −0 torque-306/torquebox.yml
View
@@ -0,0 +1,2 @@
+source "http://rubygems.org"
+gem "rack"
View
@@ -0,0 +1,10 @@
+GEM
+ remote: http://rubygems.org/
+ specs:
+ rack (1.2.2)
+
+PLATFORMS
+ java
+
+DEPENDENCIES
+ rack
View
@@ -0,0 +1 @@
+require "torquebox-rake-support"
View
@@ -0,0 +1,4 @@
+require 'rack_app.rb'
+use Rack::Reloader
+VAR = "config.ru"
+run RackApp.new
View
@@ -0,0 +1,4 @@
+require 'rack_app.rb'
+use Rack::Reloader
+VAR = "foo.ru"
+run RackApp.new
View
@@ -0,0 +1,7 @@
+
+class RackApp
+ def call(env)
+ [200, {'Content-Type' => 'text/plain'}, "VAR=#{VAR}" ]
+ end
+end
+
View
@@ -0,0 +1,2 @@
+web:
+ rackup: foo.ru

0 comments on commit 27d5c66

Please sign in to comment.