Browse files

Rename shell commands "flavors" to "flavor-list" and "images" to "ima…

…ge-list" to match the rest of the commands.
  • Loading branch information...
1 parent 9c8b5cb commit b8286fb747da76d7603e36a077a49aa8b94309ba @jacobian jacobian committed Dec 11, 2009
Showing with 8 additions and 8 deletions.
  1. +2 −2 README.rst
  2. +2 −2 cloudservers/
  3. +4 −4 tests/
@@ -37,14 +37,14 @@ You'll find complete documentation on the shell by running ``cloudservers help``
Delete the backup schedule for a server.
boot Boot a new server.
delete Immediately shut down and delete a server.
- flavors Print a list of available 'flavors' (sizes of
+ flavor-list Print a list of available 'flavors' (sizes of
help Display help about this program or one of its
image-create Create a new image by taking a snapshot of a running
image-delete Delete an image.
- images Print a list of available images to boot from.
+ image-list Print a list of available images to boot from.
ip-share Share an IP address from the given IP group onto a
ip-unshare Stop sharing an given address with a server.
@@ -204,11 +204,11 @@ def do_boot(self, args):
server = self.cs.servers.create(, image, flavor, args.ipgroup, metadata)
- def do_flavors(self, args):
+ def do_flavor_list(self, args):
"""Print a list of available 'flavors' (sizes of servers)."""
print_list(self.cs.flavors.list(), ['ID', 'Name', 'RAM', 'Disk'])
- def do_images(self, args):
+ def do_image_list(self, args):
"""Print a list of available images to boot from."""
print_list(self.cs.images.list(), ['ID', 'Name', 'Status'])
@@ -70,12 +70,12 @@ def test_boot():
'metadata': {'foo': 'bar', 'spam': 'eggs'}}}
-def test_flavors():
- shell('flavors')
+def test_flavor_list():
+ shell('flavor-list')
assert_called('GET', '/flavors/detail')
-def test_images():
- shell('images')
+def test_image_list():
+ shell('image-list')
assert_called('GET', '/images/detail')
def test_image_create():

0 comments on commit b8286fb

Please sign in to comment.