When an obligation or contract made on behalf of the City granting an easement, or creating a public duty, is being evaded or violated, the City Attorney shall likewise apply for the forfeiture or the specific performance thereof, as the nature of the case requires.