Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save codeblogger/364527 to your computer and use it in GitHub Desktop.
Save codeblogger/364527 to your computer and use it in GitHub Desktop.
require 'rubygems'
require 'httparty'
loop do
response = HTTParty.get 'http://store.apple.com/'
`say 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