Fog is a general-purpose cloud-library for Ruby. The CloudVPS Object Store can be accessed using its OpenStack driver as follows:
auth_url = 'https://identity.stack.cloudvps.com/v2.0/tokens' client = Fog::Storage.new :provider => 'OpenStack',
user = 'YOUR_USERNAME'
password = 'YOUR_PASSWORD'
project_id = 'YOUR_PROJECTID'
:openstack_auth_url => auth_url,
:openstack_username => user,
:openstack_api_key => password,
:openstack_tenant => project_id # Proof of concept: puts all container names
response = client.get_containers()
response.body.each do |container|