1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

more formatting love for readme

This commit is contained in:
geemus (Wesley Beary) 2010-03-22 22:33:55 -07:00
parent 101b08e3cc
commit accdd007dd

View file

@ -13,9 +13,7 @@ Put them together and you get a great cloud computing experience, but we are get
sudo gem install fog sudo gem install fog
Now just type 'fog' to trying stuff out, confident that fog should let you know what you need to do. Now just type 'fog' to trying stuff out, confident that fog should let you know what you need to do. Here is an example of wading through server creation for Amazon Elastic Compute Cloud:
Here is an example of wading through server creation for Amazon Elastic Compute Cloud:
>> server = AWS.servers.create >> server = AWS.servers.create
ArgumentError: image_id is required for this operation ArgumentError: image_id is required for this operation
@ -28,10 +26,10 @@ Here is an example of wading through server creation for Amazon Elastic Compute
Nouns like Images and Servers are collections, which form the interface to the cloud. Nouns like Images and Servers are collections, which form the interface to the cloud.
Collections provide all, create, get and new methods. Collections provide all, create, get and new methods.
all fetches every object of that type from the cloud. * all fetches every object of that type from the cloud.
create initializes a new record locally and then persists it to the cloud. * create initializes a new record locally and then persists it to the cloud.
get fetches a single object by its identity. * get fetches a single object by its identity.
new initializes a new record locally. * new initializes a new record locally.
Common compute nouns are flavors, images and servers. Common compute nouns are flavors, images and servers.
@ -61,9 +59,9 @@ As an example, we'll try initializing and persisting a rackspace server:
== Models == Models
Many of the collection methods return individual objects, which provide destroy, save and wait_for methods. Many of the collection methods return individual objects, which provide destroy, save and wait_for methods.
destroy will destroy the persisted object from the cloud * destroy will destroy the persisted object from the cloud
save will persist the object to the cloud * save will persist the object to the cloud
wait_for takes a block and waits for either the block to return true for the object or for a timeout (defaults to 10 minutes) * wait_for takes a block and waits for either the block to return true for the object or for a timeout (defaults to 10 minutes)
== Mocks == Mocks