mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
parent
446407b127
commit
505ea2e8bf
1 changed files with 17 additions and 9 deletions
26
README.md
26
README.md
|
@ -14,19 +14,27 @@ fog is the Ruby cloud services library, top to bottom:
|
|||
|
||||
## Getting Started
|
||||
|
||||
sudo gem install fog
|
||||
|
||||
Now type `fog` to try stuff, confident that fog will let you know what to do.
|
||||
The easiest way to learn fog is to install the gem and use the interactive console.
|
||||
Here is an example of wading through server creation for Amazon Elastic Compute Cloud:
|
||||
|
||||
>> server = Compute[:aws].servers.create
|
||||
ArgumentError: image_id is required for this operation
|
||||
```
|
||||
$ sudo gem install fog
|
||||
[...]
|
||||
|
||||
>> server = Compute[:aws].servers.create(:image_id => 'ami-5ee70037')
|
||||
<Fog::AWS::EC2::Server [...]>
|
||||
$ fog
|
||||
|
||||
>> server.destroy # cleanup after yourself or regret it, trust me
|
||||
true
|
||||
Welcome to fog interactive!
|
||||
:default provides [...]
|
||||
|
||||
>> server = Compute[:aws].servers.create
|
||||
ArgumentError: image_id is required for this operation
|
||||
|
||||
>> server = Compute[:aws].servers.create(:image_id => 'ami-5ee70037')
|
||||
<Fog::AWS::EC2::Server [...]>
|
||||
|
||||
>> server.destroy # cleanup after yourself or regret it, trust me
|
||||
true
|
||||
```
|
||||
|
||||
## Ruby 1.8.7
|
||||
|
||||
|
|
Loading…
Reference in a new issue