def versions(name)
      name = name.respond_to?(:name) ? name.name : name
      (_cookbooks[name] && _cookbooks[name].keys.sort) || []
    end
def versions(name)
      name = name.respond_to?(:name) ? name.name : name
      (_cookbooks[name] && _cookbooks[name].keys.sort) || []
    end
Return a list of all versions for the given cookbook.

 @param [String, CommunityZero::Cookbook] name
   the cookbook or name of the cookbook to get versions for