libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From to...@apache.org
Subject [4/4] git commit: Rename some methods for increased consistency.
Date Tue, 16 Jul 2013 22:01:57 GMT
Rename some methods for increased consistency.

Signed-off-by: Tomaz Muraus <tomaz@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/de0559a8
Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/de0559a8
Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/de0559a8

Branch: refs/heads/0.13.x
Commit: de0559a84dba8b4d02c04cb1616ec7de85138bc7
Parents: 8fd8acd
Author: Alex Gaynor <alex.gaynor@gmail.com>
Authored: Tue Jul 16 12:19:09 2013 -0700
Committer: Tomaz Muraus <tomaz@apache.org>
Committed: Tue Jul 16 23:58:51 2013 +0200

----------------------------------------------------------------------
 libcloud/compute/base.py | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/de0559a8/libcloud/compute/base.py
----------------------------------------------------------------------
diff --git a/libcloud/compute/base.py b/libcloud/compute/base.py
index 5014a54..b5def91 100644
--- a/libcloud/compute/base.py
+++ b/libcloud/compute/base.py
@@ -415,7 +415,7 @@ class StorageVolume(UuidMixin):
 
         @returns C{VolumeSnapshot}
         """
-        return self.driver.snapshot_volume(volume=self, name=name)
+        return self.driver.create_volume_snapshot(volume=self, name=name)
 
     def destroy(self):
         """
@@ -441,7 +441,7 @@ class VolumeSnapshot(object):
 
         @returns C{bool}
         """
-        return self.driver.destroy_snapshot(snapshot=self)
+        return self.driver.destroy_volume_snapshot(snapshot=self)
 
 
 class NodeDriver(BaseDriver):
@@ -817,23 +817,23 @@ class NodeDriver(BaseDriver):
         raise NotImplementedError(
             'list_volume_snapshots not implemented for this driver')
 
-    def snapshot_volume(self, volume, name):
+    def create_volume_snapshot(self, volume, name):
         """
         Creates a snapshot of the storage volume.
 
         @rtype: L{VolumeSnapshot}
         """
         raise NotImplementedError(
-            'snapshot_volume not implemented for this driver')
+            'create_volume_snapshot not implemented for this driver')
 
-    def destroy_snapshot(self, snapshot):
+    def destroy_volume_snapshot(self, snapshot):
         """
         Destroys a snapshot.
 
         @rtype: L{bool}
         """
         raise NotImplementedError(
-            'destroy_snapshot not implemented for this driver')
+            'destroy_volume_snapshot not implemented for this driver')
 
     def _wait_until_running(self, node, wait_period=3, timeout=600,
                             ssh_interface='public_ips', force_ipv4=True):


Mime
View raw message