jcmuller/build_status_server

View on GitHub
bin/test_tcp_server

Summary

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

require "rubygems"
require "sinatra/base"

class TestTcpServer < Sinatra::Base

  get(%r(/(red|green))) do |path|
    "<html>#{path}</html>"
  end

  run!
end