Skip to content

Instantly share code, notes, and snippets.

@ryotarai
Created July 3, 2014 04:11
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 ryotarai/7dd521d8a3b5c5a88d42 to your computer and use it in GitHub Desktop.
Save ryotarai/7dd521d8a3b5c5a88d42 to your computer and use it in GitHub Desktop.
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