Created
August 21, 2009 17:15
-
-
Save ecin/172192 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Our IRS (Internal Request Service) agent | |
require 'rack/probe' | |
# Let's add some nice phrases to our app's repertoire | |
responses = ['Clap clap clap!', 'Oh noes, oh noes, oh noes!', 'Oh yeah, oh yeah, oh yeah!'] | |
# Our friendly app. He's a cheery fellow, get's easily agitated | |
app = Proc.new{ [200, {'Content-Type' => 'text/html'}, responses[rand(3)] } | |
# The agent slips in between the paper trail | |
use Rack::Probe | |
# You can run, but you can't hide | |
run app |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment