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

Merge pull request #526 from bobbyw/patch-1

Fixed a couple of errors in the examples
This commit is contained in:
Wesley Beary 2011-09-26 14:47:01 -07:00
commit abc426f9ff

View file

@ -24,7 +24,7 @@ Now in order to play with our data we need to setup a storage connection.
storage = Fog::Storage.new({
:local_root => '~/fog',
:provider => 'Local',
:provider => 'Local'
})
`storage` will now contain our storage object, configured to use the Local provider from our specified directory.
@ -33,7 +33,7 @@ Now in order to play with our data we need to setup a storage connection.
Now that you have cleared the preliminaries you are ready to start storing data. Storage providers in fog segregate files into `directories` to make it easier to organize things. So lets create a directory so we can see that in action.
directory = Fog::Storage.directories.create(
directory = storage.directories.create(
:key => 'data'
)