mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
Added Ruby-specific code blocks
This commit is contained in:
parent
5a9c63fe06
commit
a58c03bbfb
1 changed files with 14 additions and 6 deletions
|
@ -26,9 +26,11 @@ To install Fog via RubyGems run the following command:
|
|||
|
||||
To install Fog via Bundler add `gem 'fog'` to your `Gemfile`. This is a sample `Gemfile` to install Fog:
|
||||
|
||||
source 'https://rubygems.org'
|
||||
```ruby
|
||||
source 'https://rubygems.org'
|
||||
|
||||
gem 'fog'
|
||||
gem 'fog'
|
||||
```
|
||||
|
||||
After creating your `Gemfile` execute the following command to install the libraries:
|
||||
|
||||
|
@ -46,16 +48,22 @@ Once `irb` has launched you will need to require the Fog library.
|
|||
|
||||
If using Ruby 1.8.x execute the following command:
|
||||
|
||||
require 'rubygems'
|
||||
require 'fog'
|
||||
```ruby
|
||||
require 'rubygems'
|
||||
require 'fog'
|
||||
```
|
||||
|
||||
If using Ruby 1.9.x execute the following command:
|
||||
|
||||
require 'fog'
|
||||
```ruby
|
||||
require 'fog'
|
||||
```
|
||||
|
||||
You should now be able to execute the following command to see a list of services Fog provides for the Rackspace Open Cloud:
|
||||
|
||||
Fog::OpenStack.services
|
||||
```ruby
|
||||
Fog::OpenStack.services
|
||||
```
|
||||
|
||||
These services can be explored in further depth in the following documents:
|
||||
|
||||
|
|
Loading…
Reference in a new issue