class TP2::Server

def app_from_opts

def app_from_opts
  case @opts[:app_type]
  when nil, :tp2
    Server.tp2_app(@machine, @opts)
  when :rack
    Server.rack_app(@opts)
  when :static
    Server.static_app(@opts)
  else
    raise "Invalid app type #{@opts[:app_type].inspect}"
  end
end