cfoundry is a ruby gem that provides a REST client for the Cloud Foundry REST API, which is implemented by both the cloud controller and the next generation cloud controller. cfoundry is able to speak either the v1 or the v2 version of the Cloud Foundry API.