Exemple #1
0
 def test_list_recipes(self):
     recipes = lib.get_recipes()
     self.assertEquals(len(recipes), 3)
     self.assertEquals(
         recipes[1]['description'],
         'Subversion Client installs subversion and some extra svn libs')
     self.assertEquals(recipes[2]['name'], 'subversion::server')
Exemple #2
0
def list_recipes_detailed():
    """Show information for all recipes"""
    for recipe in lib.get_recipes(cookbook_paths):
        lib.print_recipe(recipe)
Exemple #3
0
def list_recipes():
    """Show a list of all available recipes"""
    for recipe in lib.get_recipes(cookbook_paths):
        margin_left = lib.get_margin(len(recipe['name']))
        print("{0}{1}{2}".format(
            recipe['name'], margin_left, recipe['description']))
Exemple #4
0
 def test_list_recipes(self):
     recipes = lib.get_recipes()
     self.assertEquals(len(recipes), 3)
     self.assertEquals(recipes[1]['description'],
         'Subversion Client installs subversion and some extra svn libs')
     self.assertEquals(recipes[2]['name'], 'subversion::server')
Exemple #5
0
def list_recipes_detailed():
    """Show information for all recipes"""
    for recipe in lib.get_recipes(cookbook_paths):
        lib.print_recipe(recipe)
Exemple #6
0
def list_recipes():
    """Show a list of all available recipes"""
    for recipe in lib.get_recipes(cookbook_paths):
        margin_left = lib.get_margin(len(recipe['name']))
        print("{0}{1}{2}".format(recipe['name'], margin_left,
                                 recipe['description']))