mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
46 lines
1.4 KiB
Markdown
46 lines
1.4 KiB
Markdown
![]() |
# Getting Started Examples
|
||
|
|
||
|
## Download
|
||
|
|
||
|
Examples using the Rackspace Open Cloud and Fog can be found in the [fog repository](https://github.com/fog/fog) under `/fog/lib/fog/rackspace/examples`.
|
||
|
|
||
|
This repository can be downloaded via `git` by executing the following:
|
||
|
|
||
|
git clone git://github.com/fog/fog.git
|
||
|
|
||
|
Optionally, you can download a zip by clicking on this [link](https://github.com/fog/fog/archive/master.zip)
|
||
|
|
||
|
## Requirements
|
||
|
|
||
|
These examples require the following:
|
||
|
|
||
|
* Cloud Files 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 Open Cloud](https://github.com/fog/fog/blob/master/lib/fog/rackspace/docs/getting_started.md) document.
|
||
|
|
||
|
## Credentials
|
||
|
|
||
|
Examples will prompt for Rackspace Open Cloud Credentials. To skip these prompts create a `.fog` with containing the following:
|
||
|
|
||
|
default:
|
||
|
rackspace_username: RACKSPACE_USERNAME
|
||
|
rackspace_api_key: RACkSPACE_API_KEY
|
||
|
|
||
|
Replace captialized values with the appropriate information.
|
||
|
|
||
|
## Executing
|
||
|
|
||
|
To execute these using `bundler`:
|
||
|
|
||
|
bundle exec ruby <script>
|
||
|
|
||
|
To execute these without `bundler`:
|
||
|
|
||
|
ruby <script>
|
||
|
|
||
|
## Support and Feedback
|
||
|
Your feedback is appreciated! If you have specific issues with the **fog** SDK, developers should file an [issue via Github](https://github.com/fog/fog/issues).
|
||
|
|
||
|
For general feedback and support requests, send an email to: <sdk-support@rackspace.com>.
|