vCloud Tools is a collection of tools for provisioning in vCloud Director:

They can be used as Ruby libraries or as command-line tools.

See the Usage page to get started.

You may also be interested in other open source projects from GDS.