Created
November 25, 2009 09:38
-
-
Save haarts/242601 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
#any of these calls can fail in which case I want to continue with the remainder | |
#padding each call with a begin rescue block seems stupid. Moreover this feels like a loop over an array... | |
def check_sites | |
write "checking hi..." | |
check_site(HI_MET_TOESTEL) { |doc| (doc/"table.collapsable") } | |
check_site(HI_SIM_ONLY) { |doc| (doc/"table.collapsable") } | |
write "checking t-mobile..." | |
check_site(T_MOBILE_FLEX) { |doc| (doc/'tbody') } | |
check_site(T_MOBILE_RELAX) { |doc| (doc/'tbody') } | |
check_site(T_MOBILE_MYFAVES) { |doc| (doc/'tbody') } | |
check_site(T_MOBILE_VOORDEELSIM) { |doc| (doc/'tbody') } | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment