mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
[aws|compute] add snapshot method to volume model
This commit is contained in:
parent
271b512146
commit
eff4e07947
1 changed files with 5 additions and 0 deletions
|
@ -68,6 +68,11 @@ module Fog
|
|||
connection.snapshots(:volume => self)
|
||||
end
|
||||
|
||||
def snapshot(description)
|
||||
requires :id
|
||||
connection.create_snapshot(id, description)
|
||||
end
|
||||
|
||||
def force_detach
|
||||
detach(true)
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue