From eff4e079473d8d69a630eb4a4e4484b53f6dc16a Mon Sep 17 00:00:00 2001 From: Andrei Serdeliuc Date: Sat, 17 Sep 2011 10:50:02 +0100 Subject: [PATCH] [aws|compute] add snapshot method to volume model --- lib/fog/aws/models/compute/volume.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/fog/aws/models/compute/volume.rb b/lib/fog/aws/models/compute/volume.rb index 762d2b9d6..efdb759bc 100644 --- a/lib/fog/aws/models/compute/volume.rb +++ b/lib/fog/aws/models/compute/volume.rb @@ -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