1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

[rackspace|blockstorage] Add relationship between volumes and snapshots.

This commit is contained in:
Brad Gignac 2012-09-11 12:58:26 -04:00
parent 5f6654f741
commit 4a5fc118b0

View file

@ -27,6 +27,14 @@ module Fog
state == AVAILABLE
end
def attached?
state == IN_USE
end
def snapshots
connection.snapshots.select { |s| s.volume_id == identity }
end
def save
requires :size
data = connection.create_volume(size, {