lib/trinidad/rackup_web_app.rb in trinidad-0.9.1 vs lib/trinidad/rackup_web_app.rb in trinidad-0.9.2
- old
+ new
@@ -1,16 +1,15 @@
module Trinidad
class RackupWebApp < WebApp
def init_params
super
- add_parameter_unless_exist 'rackup', rackup_script
+ if rackup_path = rackup
+ rackup_path = File.join(rackup_path, 'config.ru') if File.directory?(rackup_path)
+ add_parameter_unless_exist('rackup.path', rackup_path)
+ end
@params
end
def context_listener; 'org.jruby.rack.RackServletContextListener'; end
-
- def rackup_script
- File.read(File.join(web_app_dir, rackup))
- end
end
end