Skip to content

Instantly share code, notes, and snippets.

@haarts
Created November 25, 2009 09:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save haarts/242601 to your computer and use it in GitHub Desktop.
Save haarts/242601 to your computer and use it in GitHub Desktop.
#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