Skip to content

Instantly share code, notes, and snippets.

@dcampano
Created February 13, 2011 18:51
Show Gist options
  • Save dcampano/824943 to your computer and use it in GitHub Desktop.
Save dcampano/824943 to your computer and use it in GitHub Desktop.
vol = connection.volumes.new(:snapshot_id => snapshot.id, :availability_zone => current_instance.availability_zone, :size => snapshot.volume_size)
vol.device = "/dev/sdk"
vol.server = current_instance
vol.save
vol.wait_for { ready? }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment