fog-dtdream 0.0.7 → 0.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/README.md +3 -27
- data/lib/fog/dtdream/models/storage/directories.rb +1 -4
- data/lib/fog/dtdream/models/storage/files.rb +3 -0
- data/lib/fog/dtdream/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cdafc6fb1ef049f3bad35a9178064074219bf5d0
|
4
|
+
data.tar.gz: ceee563e53eabc7400c672f71905325d43a5dac3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e826e09e7175aa70e8c90170eb2e00498931df3f55ea282344e3a57aadc668f3848cafd4fcc0560f67c585e96e02f509edf8ca99478d12209a98e6356d9f7405
|
7
|
+
data.tar.gz: 5c382be83d9395fb40018c2dc365e7d809723e69106edcce240a94e5da0aee662800d93ceb4f05c8ff5acfb9808afbb3d5fbdf5c21b856aaed58ee2a7f2e90aa
|
data/.gitignore
CHANGED
data/README.md
CHANGED
@@ -1,7 +1,5 @@
|
|
1
1
|
# Fog::Dtdream
|
2
2
|
|
3
|
-
Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/fog/dtdream`. To experiment with that code, run `bin/console` for an interactive prompt.
|
4
|
-
|
5
3
|
## Installation
|
6
4
|
|
7
5
|
Add this line to your application's Gemfile:
|
@@ -175,7 +173,7 @@ The remainder of this document details the model abstraction.
|
|
175
173
|
To retrieve a list of directories:
|
176
174
|
|
177
175
|
```ruby
|
178
|
-
conn.directories
|
176
|
+
dirs = conn.directories
|
179
177
|
```
|
180
178
|
|
181
179
|
This returns a collection of `Fog::Storage::Dtdream::Directory` models:
|
@@ -185,7 +183,7 @@ This returns a collection of `Fog::Storage::Dtdream::Directory` models:
|
|
185
183
|
To retrieve a specific directory:
|
186
184
|
|
187
185
|
```ruby
|
188
|
-
|
186
|
+
dir = dirs.get "dir"
|
189
187
|
```
|
190
188
|
|
191
189
|
This returns a `Fog::Storage::Dtdream::Directory` instance:
|
@@ -195,7 +193,7 @@ This returns a `Fog::Storage::Dtdream::Directory` instance:
|
|
195
193
|
To create a directory:
|
196
194
|
|
197
195
|
```ruby
|
198
|
-
|
196
|
+
dirs.create :key => 'backups'
|
199
197
|
```
|
200
198
|
|
201
199
|
## Delete Directory
|
@@ -237,28 +235,6 @@ file = directory.files.create :key => 'space.jpg', :body => File.open "space.jpg
|
|
237
235
|
|
238
236
|
**Note**: For files larger than 5 GB please refer to the [Upload Large Files](#upload_large_files) section.
|
239
237
|
|
240
|
-
### Additional Parameters
|
241
|
-
|
242
|
-
The `create` method also supports the following key values:
|
243
|
-
|
244
|
-
<table>
|
245
|
-
<tr>
|
246
|
-
<th>Key</th>
|
247
|
-
<th>Description</th>
|
248
|
-
</tr>
|
249
|
-
<tr>
|
250
|
-
<td>:content_type</td>
|
251
|
-
<td>The content type of the object. Cloud Files will attempt to auto detect this value if omitted.</td>
|
252
|
-
</tr>
|
253
|
-
<tr>
|
254
|
-
<td>:origin</td>
|
255
|
-
<td>The origin is the URI of the object's host.</td>
|
256
|
-
</tr>
|
257
|
-
<tr>
|
258
|
-
<td>:etag</td>
|
259
|
-
<td>The MD5 checksum of your object's data. If specified, Cloud Files will validate the integrity of the uploaded object.</td>
|
260
|
-
</tr>
|
261
|
-
</table>
|
262
238
|
|
263
239
|
## Upload Large Files
|
264
240
|
|
data/lib/fog/dtdream/version.rb
CHANGED