1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/lib/fog/rackspace/examples/compute_v2
2013-02-05 08:15:44 -06:00
..
create_image.rb moved cloud servers examples to lib/fog/rackspace/examples/compute_v2; renamed cloud_servers.md to compute_v2.md 2013-02-05 08:15:44 -06:00
create_server.rb moved cloud servers examples to lib/fog/rackspace/examples/compute_v2; renamed cloud_servers.md to compute_v2.md 2013-02-05 08:15:44 -06:00
delete_image.rb moved cloud servers examples to lib/fog/rackspace/examples/compute_v2; renamed cloud_servers.md to compute_v2.md 2013-02-05 08:15:44 -06:00
delete_server.rb moved cloud servers examples to lib/fog/rackspace/examples/compute_v2; renamed cloud_servers.md to compute_v2.md 2013-02-05 08:15:44 -06:00
detach_volume.rb moved cloud servers examples to lib/fog/rackspace/examples/compute_v2; renamed cloud_servers.md to compute_v2.md 2013-02-05 08:15:44 -06:00
README.md moved cloud servers examples to lib/fog/rackspace/examples/compute_v2; renamed cloud_servers.md to compute_v2.md 2013-02-05 08:15:44 -06:00
resize_server.rb moved cloud servers examples to lib/fog/rackspace/examples/compute_v2; renamed cloud_servers.md to compute_v2.md 2013-02-05 08:15:44 -06:00
server_attachments.rb moved cloud servers examples to lib/fog/rackspace/examples/compute_v2; renamed cloud_servers.md to compute_v2.md 2013-02-05 08:15:44 -06:00
server_metadata.rb moved cloud servers examples to lib/fog/rackspace/examples/compute_v2; renamed cloud_servers.md to compute_v2.md 2013-02-05 08:15:44 -06:00

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.