Checking a port is open on AWS Security Groups in Ruby

If you want to make sure a port being open in AWS Security Groups in Ruby, I suggest using Fog. Here is a sample code to do it:

Note: this is taken from Fog source code

Try Cloud 66 for Free, No credit card required