1
0
Fork 0
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:
Andrei Serdeliuc 2011-09-17 10:50:02 +01:00
parent 271b512146
commit eff4e07947

View file

@ -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