mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
Merge pull request #514 from extraordinaire/master
Add snapshot method to aws volume model
This commit is contained in:
commit
e1f5bfda27
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