Created
December 10, 2017 20:10
-
-
Save mraaroncruz/e44dca5828e3c0acb729c15bcacb5a67 to your computer and use it in GitHub Desktop.
george is down
This file contains 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 "typhoeus" | |
loop do | |
puts "In Loop" | |
res = Typhoeus.get("https://george.sparkasse.at/") | |
if res.success? | |
unless res.body =~ /George arbeitet an sich/ | |
`say "George is back online!"` | |
return | |
end | |
end | |
sleep(60) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment