Created
May 6, 2011 18:40
-
-
Save freeformz/959520 to your computer and use it in GitHub Desktop.
Fog ECloud Sample Usage
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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