Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Fog ECloud Sample Usage
gem install fog
Successfully installed fog-0.7.2
1 gem installed
cat ~/.fog
:default:
:ecloud_username: <ecloud username>
:ecloud_password: <ecloud password>
:ecloud_versions_uri: https://services.enterprisecloud.terremark.com/api/versions
$ fog
Ecloud[:compute].vdcs.count
15
Ecloud[:compute].vdcs.first.servers.count
7
Ecloud[:compute].vdcs.first.internet_services.count
9
Ecloud[:compute].vdcs.first.public_ips.count
5
Ecloud[:compute].vdcs.first.servers.create(<template_url>, {options})
Take a look at lib/fog/compute/models/ecloud/*rb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment