Skip to content

Instantly share code, notes, and snippets.

@ecin
Created August 21, 2009 17:15
Show Gist options
  • Save ecin/172192 to your computer and use it in GitHub Desktop.
Save ecin/172192 to your computer and use it in GitHub Desktop.
# 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