class Berkshelf::Shelf
def find(name, version = nil)
-
(Array
-)
Raises:
-
(CookbookNotFound)
-
Parameters:
-
version
(String, nil
) -- -
name
(String
) --
def find(name, version = nil) cookbooks = if version [store.cookbook(name, version)].compact else store.cookbooks(name).sort end if cookbooks.empty? raise CookbookNotFound.new(name, version, "in the Berkshelf shelf") end cookbooks end