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:
|
To install Fog via Bundler add `gem 'fog'` to your `Gemfile`. This is a sample `Gemfile` to install Fog:
|
||||||
|
|
||||||
|
```ruby
|
||||||
source 'https://rubygems.org'
|
source 'https://rubygems.org'
|
||||||
|
|
||||||
gem 'fog'
|
gem 'fog'
|
||||||
|
```
|
||||||
|
|
||||||
After creating your `Gemfile` execute the following command to install the libraries:
|
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:
|
If using Ruby 1.8.x execute the following command:
|
||||||
|
|
||||||
|
```ruby
|
||||||
require 'rubygems'
|
require 'rubygems'
|
||||||
require 'fog'
|
require 'fog'
|
||||||
|
```
|
||||||
|
|
||||||
If using Ruby 1.9.x execute the following command:
|
If using Ruby 1.9.x execute the following command:
|
||||||
|
|
||||||
|
```ruby
|
||||||
require 'fog'
|
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:
|
You should now be able to execute the following command to see a list of services Fog provides for the Rackspace Open Cloud:
|
||||||
|
|
||||||
|
```ruby
|
||||||
Fog::OpenStack.services
|
Fog::OpenStack.services
|
||||||
|
```
|
||||||
|
|
||||||
These services can be explored in further depth in the following documents:
|
These services can be explored in further depth in the following documents:
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue