CloudCredo/cloudfocker — pull request #4 by jchesterpivotal (2014-08-27 14:05:32+00:00)
Title: Load DATABASE_URL env based on  vcap_services.json

Ruby buildpacks provide a DATABASE_URL variable as part of their behaviour (following from Heroku's lead).

To support this in a CF context, Cloud Controller will extract a database URL from vcap_services.json.

This patch emulates that behaviour.