bin/david

Summary

Maintainability
Test Coverage
#!/usr/bin/env ruby

$:.unshift(File.expand_path(File.join('..', '..', 'lib'), __FILE__))

require 'david'
require 'rack/hello_world'

options = {}
options[:Log] = 'debug' if ARGV.include?('-d')
options[:Multicast] = false if defined?(JRuby)

klass = Rack::HelloWorld.new
klass = Rack::ETag.new(klass)
klass = Rack::Lint.new(klass) if ARGV.include?('-l')

Rack::Handler::David.run(klass, options)