I think just using the repository uri as a attribute is enough. It will give the cookbook flexibility and will solves the problem.