Created
April 13, 2010 11:18
-
-
Save jeffkreeftmeijer/364515 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
require 'rubygems' | |
require 'httparty' | |
loop do | |
response = HTTParty.get 'http://store.apple.com/' | |
puts "OMG! It's back!" unless response.body.include? "We'll be back soon" | |
sleep 15 | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment