Created
July 3, 2014 04:11
-
-
Save ryotarai/7dd521d8a3b5c5a88d42 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 'open-uri' | |
region = ARGV.first | |
unless region | |
puts "usage: ruby get-aws-status-rss.rb ap-northeast-1" | |
end | |
source = open("http://status.aws.amazon.com/") {|f| f.read } | |
source.scan(/'(\w+-#{region})'/) do |match| | |
service = match[0] | |
puts "http://status.aws.amazon.com/rss/#{service}.rss" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment