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:
parent
5f6654f741
commit
4a5fc118b0
1 changed files with 8 additions and 0 deletions
|
@ -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, {
|
||||
|
|
Loading…
Add table
Reference in a new issue