2011-03-31 14:22:02 -04:00
|
|
|
---
|
|
|
|
layout: default
|
2011-04-01 09:24:50 -04:00
|
|
|
title: Getting Started
|
2011-03-31 14:22:02 -04:00
|
|
|
---
|
|
|
|
|
2011-04-01 14:20:47 -04:00
|
|
|
First off, install the gem:
|
2011-03-31 14:22:02 -04:00
|
|
|
|
|
|
|
$ gem install fog
|
|
|
|
|
2011-04-01 14:20:47 -04:00
|
|
|
## Setting Up Local Storage
|
2011-03-31 14:22:02 -04:00
|
|
|
|
|
|
|
We will be using local storage in the example, so first off make a local directory that things can go in.
|
|
|
|
|
|
|
|
$ mkdir ~/fog
|
|
|
|
|
|
|
|
Now We can start building out our script to play with. First thing is first, we will setup a storage connection.
|
|
|
|
|
|
|
|
Fog::Storage.new(
|
2011-04-01 14:20:47 -04:00
|
|
|
:local_root => '~/fog',
|
|
|
|
:provider => 'Local',
|
2011-03-31 14:22:02 -04:00
|
|
|
)
|