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:
commit
abc426f9ff
1 changed files with 2 additions and 2 deletions
|
@ -24,7 +24,7 @@ Now in order to play with our data we need to setup a storage connection.
|
||||||
|
|
||||||
storage = Fog::Storage.new({
|
storage = Fog::Storage.new({
|
||||||
:local_root => '~/fog',
|
:local_root => '~/fog',
|
||||||
:provider => 'Local',
|
:provider => 'Local'
|
||||||
})
|
})
|
||||||
|
|
||||||
`storage` will now contain our storage object, configured to use the Local provider from our specified directory.
|
`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.
|
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'
|
:key => 'data'
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue