.. | ||
create_image.rb | ||
create_server.rb | ||
delete_image.rb | ||
delete_server.rb | ||
detach_volume.rb | ||
README.md | ||
resize_server.rb | ||
server_attachments.rb | ||
server_metadata.rb |
Getting Started Examples
Download
You can find examples using the Rackspace and Fog in the fog repository under the fog/lib/fog/rackspace/examples
directory.
You can download this repository by executing the following command:
git clone git://github.com/fog/fog.git
Optionally you can download a zip by clicking on this link.
Requirements
Examples require the following:
- Rackspace Cloud account
- Ruby 1.8.x or 1.9.x
fog
gem
For more information please refer to the Getting Started with Fog and the Rackspace Cloud document.
Credentials
Examples will prompt for Rackspace Cloud credentials. You can skip prompts by creating a .fog
file in the user's home directory. This is an example of a .fog
file for the Rackspace Cloud:
default:
rackspace_username: RACKSPACE_USERNAME
rackspace_api_key: RACKSPACE_API_KEY
Note: Replace capitalized values with the appropriate credential information.
Executing
To execute scripts using bundler
:
bundle exec ruby <script>
To execute scripts without bundler
:
ruby <script>
Support and Feedback
Your feedback is appreciated! If you have specific issues with the fog SDK, you should file an issue via Github.
For general feedback and support requests, send an email to: sdk-support@rackspace.com.