Skip to content

Commit

Permalink
Rename list_recipes as list_recipes_detailed and add a new list_recip…
Browse files Browse the repository at this point in the history
…es command that shows a simple recipe name list
  • Loading branch information
tobami committed Dec 13, 2010
1 parent be9749c commit b2fa82a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG
Expand Up @@ -3,6 +3,12 @@ Little Chef Change Log
======================


Version NEXT
-----------------------------------------
* NEW: "list_recipes" now shows only a simple name list.
The old, detailed list_recipes has now become "list_recipes_detailed"


Version 0.4.0 December 9, 2010
-----------------------------------------
* NEW: mynode.json doesn't have any custom littlechef fields anymore
Expand Down
8 changes: 7 additions & 1 deletion littlechef.py
Expand Up @@ -179,7 +179,13 @@ def list_nodes_with_role(role):

@hosts('api')
def list_recipes():
'''Show all available recipes'''
'''Show a list of all available recipes'''
for recipe in _get_recipes():
print(recipe['name'])

@hosts('api')
def list_recipes_detailed():
'''Show a detailed list of available recipes'''
for recipe in _get_recipes():
_print_recipe(recipe)

Expand Down

0 comments on commit b2fa82a

Please sign in to comment.