Skip to content

Instantly share code, notes, and snippets.

@kgilpin kgilpin/gist:3873480
Created Oct 11, 2012

Embed
What would you like to do?
Find a free drive letter
# Need to find the next available device to let AWS know where to attach
# the volume
drive = (Array('c'..'z').map{|c| "/dev/xvd#{c}"} - Dir.glob("/dev/xvd*"))[0]
device_id = drive[-1..-1]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.