openstack-swift 0.1.1 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (54) hide show
  1. data/Gemfile.lock +2 -2
  2. data/README.rdoc +47 -0
  3. data/doc/Gemfile.html +100 -0
  4. data/doc/Object.html +177 -0
  5. data/doc/Openstack.html +162 -0
  6. data/doc/Openstack/Swift.html +182 -0
  7. data/doc/Openstack/Swift/AuthenticationError.html +151 -0
  8. data/doc/Openstack/Swift/Client.html +316 -0
  9. data/doc/Openstack/Swift/UnauthorizedError.html +147 -0
  10. data/doc/Openstack/Swift/WebApi.html +417 -0
  11. data/doc/Rakefile.html +98 -0
  12. data/doc/created.rid +11 -0
  13. data/doc/images/brick.png +0 -0
  14. data/doc/images/brick_link.png +0 -0
  15. data/doc/images/bug.png +0 -0
  16. data/doc/images/bullet_black.png +0 -0
  17. data/doc/images/bullet_toggle_minus.png +0 -0
  18. data/doc/images/bullet_toggle_plus.png +0 -0
  19. data/doc/images/date.png +0 -0
  20. data/doc/images/find.png +0 -0
  21. data/doc/images/loadingAnimation.gif +0 -0
  22. data/doc/images/macFFBgHack.png +0 -0
  23. data/doc/images/package.png +0 -0
  24. data/doc/images/page_green.png +0 -0
  25. data/doc/images/page_white_text.png +0 -0
  26. data/doc/images/page_white_width.png +0 -0
  27. data/doc/images/plugin.png +0 -0
  28. data/doc/images/ruby.png +0 -0
  29. data/doc/images/tag_green.png +0 -0
  30. data/doc/images/wrench.png +0 -0
  31. data/doc/images/wrench_orange.png +0 -0
  32. data/doc/images/zoom.png +0 -0
  33. data/doc/index.html +88 -0
  34. data/doc/js/darkfish.js +116 -0
  35. data/doc/js/jquery.js +32 -0
  36. data/doc/js/quicksearch.js +114 -0
  37. data/doc/js/thickbox-compressed.js +10 -0
  38. data/doc/lib/openstack-swift/client_rb.html +52 -0
  39. data/doc/lib/openstack-swift/errors_rb.html +52 -0
  40. data/doc/lib/openstack-swift/version_rb.html +52 -0
  41. data/doc/lib/openstack-swift/web_api_rb.html +52 -0
  42. data/doc/lib/openstack-swift_rb.html +66 -0
  43. data/doc/rdoc.css +763 -0
  44. data/doc/spec/openstack-swift/client_spec_rb.html +54 -0
  45. data/doc/spec/openstack-swift/web_api_spec_rb.html +54 -0
  46. data/doc/spec/spec_helper_rb.html +58 -0
  47. data/lib/openstack-swift/api.rb +77 -1
  48. data/lib/openstack-swift/client.rb +12 -57
  49. data/lib/openstack-swift/errors.rb +1 -0
  50. data/lib/openstack-swift/version.rb +1 -1
  51. data/spec/openstack-swift/{web_api_spec.rb → api_spec.rb} +23 -2
  52. data/spec/openstack-swift/client_spec.rb +19 -4
  53. metadata +60 -16
  54. data/openstack-swift-0.1.0.gem +0 -0
@@ -0,0 +1,182 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
3
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5
+ <head>
6
+ <meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
7
+
8
+ <title>Module: Openstack::Swift</title>
9
+
10
+ <link rel="stylesheet" href="../rdoc.css" type="text/css" media="screen" />
11
+
12
+ <script src="../js/jquery.js" type="text/javascript" charset="utf-8"></script>
13
+ <script src="../js/thickbox-compressed.js" type="text/javascript" charset="utf-8"></script>
14
+ <script src="../js/quicksearch.js" type="text/javascript" charset="utf-8"></script>
15
+ <script src="../js/darkfish.js" type="text/javascript" charset="utf-8"></script>
16
+
17
+ </head>
18
+ <body id="top" class="module">
19
+
20
+ <div id="metadata">
21
+ <div id="home-metadata">
22
+ <div id="home-section" class="section">
23
+ <h3 class="section-header">
24
+ <a href="../index.html">Home</a>
25
+ <a href="../index.html#classes">Classes</a>
26
+ <a href="../index.html#methods">Methods</a>
27
+ </h3>
28
+ </div>
29
+ </div>
30
+
31
+ <div id="file-metadata">
32
+ <div id="file-list-section" class="section">
33
+ <h3 class="section-header">In Files</h3>
34
+ <div class="section-body">
35
+ <ul>
36
+
37
+ <li><a href="../lib/openstack-swift_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
38
+ class="thickbox" title="lib/openstack-swift.rb">lib/openstack-swift.rb</a></li>
39
+
40
+ <li><a href="../lib/openstack-swift/version_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
41
+ class="thickbox" title="lib/openstack-swift/version.rb">lib/openstack-swift/version.rb</a></li>
42
+
43
+ <li><a href="../lib/openstack-swift/errors_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
44
+ class="thickbox" title="lib/openstack-swift/errors.rb">lib/openstack-swift/errors.rb</a></li>
45
+
46
+ <li><a href="../lib/openstack-swift/web_api_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
47
+ class="thickbox" title="lib/openstack-swift/web_api.rb">lib/openstack-swift/web_api.rb</a></li>
48
+
49
+ <li><a href="../lib/openstack-swift/client_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
50
+ class="thickbox" title="lib/openstack-swift/client.rb">lib/openstack-swift/client.rb</a></li>
51
+
52
+ </ul>
53
+ </div>
54
+ </div>
55
+
56
+
57
+ </div>
58
+
59
+ <div id="class-metadata">
60
+
61
+
62
+
63
+
64
+
65
+ <!-- Namespace Contents -->
66
+ <div id="namespace-list-section" class="section">
67
+ <h3 class="section-header">Namespace</h3>
68
+ <ul class="link-list">
69
+
70
+ <li><span class="type">MODULE</span> <a href="Swift/WebApi.html">Openstack::Swift::WebApi</a></li>
71
+
72
+ <li><span class="type">CLASS</span> <a href="Swift/AuthenticationError.html">Openstack::Swift::AuthenticationError</a></li>
73
+
74
+ <li><span class="type">CLASS</span> <a href="Swift/Client.html">Openstack::Swift::Client</a></li>
75
+
76
+ </ul>
77
+ </div>
78
+
79
+
80
+
81
+
82
+
83
+ </div>
84
+
85
+ <div id="project-metadata">
86
+
87
+
88
+ <div id="fileindex-section" class="section project-section">
89
+ <h3 class="section-header">Files</h3>
90
+ <ul>
91
+
92
+ <li class="file"><a href="../Gemfile.html">Gemfile</a></li>
93
+
94
+ <li class="file"><a href="../Rakefile.html">Rakefile</a></li>
95
+
96
+ </ul>
97
+ </div>
98
+
99
+
100
+ <div id="classindex-section" class="section project-section">
101
+ <h3 class="section-header">Class/Module Index
102
+ <span class="search-toggle"><img src="../images/find.png"
103
+ height="16" width="16" alt="[+]"
104
+ title="show/hide quicksearch" /></span></h3>
105
+ <form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
106
+ <fieldset>
107
+ <legend>Quicksearch</legend>
108
+ <input type="text" name="quicksearch" value=""
109
+ class="quicksearch-field" />
110
+ </fieldset>
111
+ </form>
112
+
113
+ <ul class="link-list">
114
+
115
+ <li><a href="../Openstack.html">Openstack</a></li>
116
+
117
+ <li><a href="../Openstack/Swift.html">Openstack::Swift</a></li>
118
+
119
+ <li><a href="../Openstack/Swift/AuthenticationError.html">Openstack::Swift::AuthenticationError</a></li>
120
+
121
+ <li><a href="../Openstack/Swift/Client.html">Openstack::Swift::Client</a></li>
122
+
123
+ <li><a href="../Openstack/Swift/WebApi.html">Openstack::Swift::WebApi</a></li>
124
+
125
+ <li><a href="../Object.html">Object</a></li>
126
+
127
+ </ul>
128
+ <div id="no-class-search-results" style="display: none;">No matching classes.</div>
129
+ </div>
130
+
131
+
132
+ </div>
133
+ </div>
134
+
135
+ <div id="documentation">
136
+ <h1 class="module">Openstack::Swift</h1>
137
+
138
+ <div id="description" class="description">
139
+
140
+ </div><!-- description -->
141
+
142
+
143
+
144
+
145
+ <div id="5Buntitled-5D" class="documentation-section">
146
+
147
+
148
+
149
+
150
+
151
+ <!-- Constants -->
152
+ <div id="constants-list" class="section">
153
+ <h3 class="section-header">Constants</h3>
154
+ <dl>
155
+
156
+ <dt><a name="VERSION">VERSION</a></dt>
157
+
158
+ <dd class="description"></dd>
159
+
160
+
161
+ </dl>
162
+ </div>
163
+
164
+
165
+
166
+
167
+ <!-- Methods -->
168
+
169
+ </div><!-- 5Buntitled-5D -->
170
+
171
+
172
+ </div><!-- documentation -->
173
+
174
+ <div id="validator-badges">
175
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
176
+ <p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
177
+ Rdoc Generator</a> 2</small>.</p>
178
+ </div>
179
+
180
+ </body>
181
+ </html>
182
+
@@ -0,0 +1,151 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
3
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5
+ <head>
6
+ <meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
7
+
8
+ <title>Class: Openstack::Swift::AuthenticationError</title>
9
+
10
+ <link rel="stylesheet" href="../../rdoc.css" type="text/css" media="screen" />
11
+
12
+ <script src="../../js/jquery.js" type="text/javascript" charset="utf-8"></script>
13
+ <script src="../../js/thickbox-compressed.js" type="text/javascript" charset="utf-8"></script>
14
+ <script src="../../js/quicksearch.js" type="text/javascript" charset="utf-8"></script>
15
+ <script src="../../js/darkfish.js" type="text/javascript" charset="utf-8"></script>
16
+
17
+ </head>
18
+ <body id="top" class="class">
19
+
20
+ <div id="metadata">
21
+ <div id="home-metadata">
22
+ <div id="home-section" class="section">
23
+ <h3 class="section-header">
24
+ <a href="../../index.html">Home</a>
25
+ <a href="../../index.html#classes">Classes</a>
26
+ <a href="../../index.html#methods">Methods</a>
27
+ </h3>
28
+ </div>
29
+ </div>
30
+
31
+ <div id="file-metadata">
32
+ <div id="file-list-section" class="section">
33
+ <h3 class="section-header">In Files</h3>
34
+ <div class="section-body">
35
+ <ul>
36
+
37
+ <li><a href="../../lib/openstack-swift/errors_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
38
+ class="thickbox" title="lib/openstack-swift/errors.rb">lib/openstack-swift/errors.rb</a></li>
39
+
40
+ </ul>
41
+ </div>
42
+ </div>
43
+
44
+
45
+ </div>
46
+
47
+ <div id="class-metadata">
48
+
49
+ <!-- Parent Class -->
50
+ <div id="parent-class-section" class="section">
51
+ <h3 class="section-header">Parent</h3>
52
+
53
+ <p class="link">Exception</p>
54
+
55
+ </div>
56
+
57
+
58
+
59
+
60
+
61
+
62
+
63
+
64
+
65
+ </div>
66
+
67
+ <div id="project-metadata">
68
+
69
+
70
+ <div id="fileindex-section" class="section project-section">
71
+ <h3 class="section-header">Files</h3>
72
+ <ul>
73
+
74
+ <li class="file"><a href="../../Gemfile.html">Gemfile</a></li>
75
+
76
+ <li class="file"><a href="../../Rakefile.html">Rakefile</a></li>
77
+
78
+ </ul>
79
+ </div>
80
+
81
+
82
+ <div id="classindex-section" class="section project-section">
83
+ <h3 class="section-header">Class/Module Index
84
+ <span class="search-toggle"><img src="../../images/find.png"
85
+ height="16" width="16" alt="[+]"
86
+ title="show/hide quicksearch" /></span></h3>
87
+ <form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
88
+ <fieldset>
89
+ <legend>Quicksearch</legend>
90
+ <input type="text" name="quicksearch" value=""
91
+ class="quicksearch-field" />
92
+ </fieldset>
93
+ </form>
94
+
95
+ <ul class="link-list">
96
+
97
+ <li><a href="../../Openstack.html">Openstack</a></li>
98
+
99
+ <li><a href="../../Openstack/Swift.html">Openstack::Swift</a></li>
100
+
101
+ <li><a href="../../Openstack/Swift/AuthenticationError.html">Openstack::Swift::AuthenticationError</a></li>
102
+
103
+ <li><a href="../../Openstack/Swift/Client.html">Openstack::Swift::Client</a></li>
104
+
105
+ <li><a href="../../Openstack/Swift/WebApi.html">Openstack::Swift::WebApi</a></li>
106
+
107
+ <li><a href="../../Object.html">Object</a></li>
108
+
109
+ </ul>
110
+ <div id="no-class-search-results" style="display: none;">No matching classes.</div>
111
+ </div>
112
+
113
+
114
+ </div>
115
+ </div>
116
+
117
+ <div id="documentation">
118
+ <h1 class="class">Openstack::Swift::AuthenticationError</h1>
119
+
120
+ <div id="description" class="description">
121
+
122
+ </div><!-- description -->
123
+
124
+
125
+
126
+
127
+ <div id="5Buntitled-5D" class="documentation-section">
128
+
129
+
130
+
131
+
132
+
133
+
134
+
135
+
136
+ <!-- Methods -->
137
+
138
+ </div><!-- 5Buntitled-5D -->
139
+
140
+
141
+ </div><!-- documentation -->
142
+
143
+ <div id="validator-badges">
144
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
145
+ <p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
146
+ Rdoc Generator</a> 2</small>.</p>
147
+ </div>
148
+
149
+ </body>
150
+ </html>
151
+
@@ -0,0 +1,316 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
3
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5
+ <head>
6
+ <meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
7
+
8
+ <title>Class: Openstack::Swift::Client</title>
9
+
10
+ <link rel="stylesheet" href="../../rdoc.css" type="text/css" media="screen" />
11
+
12
+ <script src="../../js/jquery.js" type="text/javascript" charset="utf-8"></script>
13
+ <script src="../../js/thickbox-compressed.js" type="text/javascript" charset="utf-8"></script>
14
+ <script src="../../js/quicksearch.js" type="text/javascript" charset="utf-8"></script>
15
+ <script src="../../js/darkfish.js" type="text/javascript" charset="utf-8"></script>
16
+
17
+ </head>
18
+ <body id="top" class="class">
19
+
20
+ <div id="metadata">
21
+ <div id="home-metadata">
22
+ <div id="home-section" class="section">
23
+ <h3 class="section-header">
24
+ <a href="../../index.html">Home</a>
25
+ <a href="../../index.html#classes">Classes</a>
26
+ <a href="../../index.html#methods">Methods</a>
27
+ </h3>
28
+ </div>
29
+ </div>
30
+
31
+ <div id="file-metadata">
32
+ <div id="file-list-section" class="section">
33
+ <h3 class="section-header">In Files</h3>
34
+ <div class="section-body">
35
+ <ul>
36
+
37
+ <li><a href="../../lib/openstack-swift/client_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
38
+ class="thickbox" title="lib/openstack-swift/client.rb">lib/openstack-swift/client.rb</a></li>
39
+
40
+ </ul>
41
+ </div>
42
+ </div>
43
+
44
+
45
+ </div>
46
+
47
+ <div id="class-metadata">
48
+
49
+ <!-- Parent Class -->
50
+ <div id="parent-class-section" class="section">
51
+ <h3 class="section-header">Parent</h3>
52
+
53
+ <p class="link"><a href="../../Object.html">Object</a></p>
54
+
55
+ </div>
56
+
57
+
58
+
59
+
60
+
61
+
62
+
63
+ <!-- Method Quickref -->
64
+ <div id="method-list-section" class="section">
65
+ <h3 class="section-header">Methods</h3>
66
+ <ul class="link-list">
67
+
68
+ <li><a href="#method-i-account_info">#account_info</a></li>
69
+
70
+ <li><a href="#method-i-authenticate">#authenticate</a></li>
71
+
72
+ <li><a href="#method-i-download">#download</a></li>
73
+
74
+ <li><a href="#method-i-upload">#upload</a></li>
75
+
76
+ </ul>
77
+ </div>
78
+
79
+
80
+
81
+ </div>
82
+
83
+ <div id="project-metadata">
84
+
85
+
86
+ <div id="fileindex-section" class="section project-section">
87
+ <h3 class="section-header">Files</h3>
88
+ <ul>
89
+
90
+ <li class="file"><a href="../../Gemfile.html">Gemfile</a></li>
91
+
92
+ <li class="file"><a href="../../Rakefile.html">Rakefile</a></li>
93
+
94
+ </ul>
95
+ </div>
96
+
97
+
98
+ <div id="classindex-section" class="section project-section">
99
+ <h3 class="section-header">Class/Module Index
100
+ <span class="search-toggle"><img src="../../images/find.png"
101
+ height="16" width="16" alt="[+]"
102
+ title="show/hide quicksearch" /></span></h3>
103
+ <form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
104
+ <fieldset>
105
+ <legend>Quicksearch</legend>
106
+ <input type="text" name="quicksearch" value=""
107
+ class="quicksearch-field" />
108
+ </fieldset>
109
+ </form>
110
+
111
+ <ul class="link-list">
112
+
113
+ <li><a href="../../Openstack.html">Openstack</a></li>
114
+
115
+ <li><a href="../../Openstack/Swift.html">Openstack::Swift</a></li>
116
+
117
+ <li><a href="../../Openstack/Swift/AuthenticationError.html">Openstack::Swift::AuthenticationError</a></li>
118
+
119
+ <li><a href="../../Openstack/Swift/Client.html">Openstack::Swift::Client</a></li>
120
+
121
+ <li><a href="../../Openstack/Swift/WebApi.html">Openstack::Swift::WebApi</a></li>
122
+
123
+ <li><a href="../../Object.html">Object</a></li>
124
+
125
+ </ul>
126
+ <div id="no-class-search-results" style="display: none;">No matching classes.</div>
127
+ </div>
128
+
129
+
130
+ </div>
131
+ </div>
132
+
133
+ <div id="documentation">
134
+ <h1 class="class">Openstack::Swift::Client</h1>
135
+
136
+ <div id="description" class="description">
137
+
138
+ </div><!-- description -->
139
+
140
+
141
+
142
+
143
+ <div id="5Buntitled-5D" class="documentation-section">
144
+
145
+
146
+
147
+
148
+
149
+
150
+
151
+
152
+ <!-- Methods -->
153
+
154
+ <div id="public-instance-method-details" class="method-section section">
155
+ <h3 class="section-header">Public Instance Methods</h3>
156
+
157
+
158
+ <div id="account_info-method" class="method-detail ">
159
+ <a name="method-i-account_info"></a>
160
+
161
+
162
+ <div class="method-heading">
163
+ <span class="method-name">account_info</span><span
164
+ class="method-args">()</span>
165
+ <span class="method-click-advice">click to toggle source</span>
166
+ </div>
167
+
168
+
169
+ <div class="method-description">
170
+
171
+ <p>Returns the following informations about the account:</p>
172
+
173
+ <pre>bytes_used: Number of bytes used by this account
174
+ object_count: Number of objects that this account have allocated
175
+ container_count: Number of container</pre>
176
+
177
+
178
+
179
+ <div class="method-source-code" id="account_info-source">
180
+ <pre>
181
+ <span class="ruby-comment"># File lib/openstack-swift/client.rb, line 21</span>
182
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">account_info</span>
183
+ <span class="ruby-constant">Openstack</span><span class="ruby-operator">::</span><span class="ruby-constant">Swift</span><span class="ruby-operator">::</span><span class="ruby-constant">WebApi</span>.<span class="ruby-identifier">account</span>(<span class="ruby-ivar">@url</span>, <span class="ruby-ivar">@token</span>)
184
+ <span class="ruby-keyword">end</span></pre>
185
+ </div><!-- account_info-source -->
186
+
187
+ </div>
188
+
189
+
190
+
191
+
192
+ </div><!-- account_info-method -->
193
+
194
+
195
+ <div id="authenticate-method" class="method-detail ">
196
+ <a name="method-i-authenticate"></a>
197
+
198
+
199
+ <div class="method-heading">
200
+ <span class="method-name">authenticate</span><span
201
+ class="method-args">(proxy, user, password)</span>
202
+ <span class="method-click-advice">click to toggle source</span>
203
+ </div>
204
+
205
+
206
+ <div class="method-description">
207
+
208
+ <p>Authentication method It stores the authentication url and token for future
209
+ commands Avoiding to request a new token for each request</p>
210
+
211
+
212
+
213
+ <div class="method-source-code" id="authenticate-source">
214
+ <pre>
215
+ <span class="ruby-comment"># File lib/openstack-swift/client.rb, line 7</span>
216
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">authenticate</span>(<span class="ruby-identifier">proxy</span>, <span class="ruby-identifier">user</span>, <span class="ruby-identifier">password</span>)
217
+ <span class="ruby-ivar">@url</span>, <span class="ruby-identifier">_</span>, <span class="ruby-ivar">@token</span> = <span class="ruby-constant">Openstack</span><span class="ruby-operator">::</span><span class="ruby-constant">Swift</span><span class="ruby-operator">::</span><span class="ruby-constant">WebApi</span>.<span class="ruby-identifier">auth</span>(<span class="ruby-identifier">proxy</span>, <span class="ruby-identifier">user</span>, <span class="ruby-identifier">password</span>)
218
+
219
+ <span class="ruby-keyword">if</span> <span class="ruby-ivar">@url</span>.<span class="ruby-identifier">blank?</span> <span class="ruby-keyword">or</span> <span class="ruby-ivar">@token</span>.<span class="ruby-identifier">blank?</span>
220
+ <span class="ruby-identifier">raise</span> <span class="ruby-constant">AuthenticationError</span>
221
+ <span class="ruby-keyword">else</span>
222
+ <span class="ruby-keyword">true</span>
223
+ <span class="ruby-keyword">end</span>
224
+ <span class="ruby-keyword">end</span></pre>
225
+ </div><!-- authenticate-source -->
226
+
227
+ </div>
228
+
229
+
230
+
231
+
232
+ </div><!-- authenticate-method -->
233
+
234
+
235
+ <div id="download-method" class="method-detail ">
236
+ <a name="method-i-download"></a>
237
+
238
+
239
+ <div class="method-heading">
240
+ <span class="method-name">download</span><span
241
+ class="method-args">(container, object)</span>
242
+ <span class="method-click-advice">click to toggle source</span>
243
+ </div>
244
+
245
+
246
+ <div class="method-description">
247
+
248
+ <p>This method downloads a object from a given container</p>
249
+
250
+
251
+
252
+ <div class="method-source-code" id="download-source">
253
+ <pre>
254
+ <span class="ruby-comment"># File lib/openstack-swift/client.rb, line 31</span>
255
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">download</span>(<span class="ruby-identifier">container</span>, <span class="ruby-identifier">object</span>)
256
+ <span class="ruby-constant">Openstack</span><span class="ruby-operator">::</span><span class="ruby-constant">Swift</span><span class="ruby-operator">::</span><span class="ruby-constant">WebApi</span>.<span class="ruby-identifier">download_object</span>(<span class="ruby-ivar">@url</span>, <span class="ruby-ivar">@token</span>, <span class="ruby-identifier">container</span>, <span class="ruby-identifier">object</span>)
257
+ <span class="ruby-keyword">end</span></pre>
258
+ </div><!-- download-source -->
259
+
260
+ </div>
261
+
262
+
263
+
264
+
265
+ </div><!-- download-method -->
266
+
267
+
268
+ <div id="upload-method" class="method-detail ">
269
+ <a name="method-i-upload"></a>
270
+
271
+
272
+ <div class="method-heading">
273
+ <span class="method-name">upload</span><span
274
+ class="method-args">(container, file_path)</span>
275
+ <span class="method-click-advice">click to toggle source</span>
276
+ </div>
277
+
278
+
279
+ <div class="method-description">
280
+
281
+ <p>This method uploads a file to a given container</p>
282
+
283
+
284
+
285
+ <div class="method-source-code" id="upload-source">
286
+ <pre>
287
+ <span class="ruby-comment"># File lib/openstack-swift/client.rb, line 26</span>
288
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">upload</span>(<span class="ruby-identifier">container</span>, <span class="ruby-identifier">file_path</span>)
289
+ <span class="ruby-constant">Openstack</span><span class="ruby-operator">::</span><span class="ruby-constant">Swift</span><span class="ruby-operator">::</span><span class="ruby-constant">WebApi</span>.<span class="ruby-identifier">upload_object</span>(<span class="ruby-ivar">@url</span>, <span class="ruby-ivar">@token</span>, <span class="ruby-identifier">container</span>, <span class="ruby-identifier">file_path</span>)
290
+ <span class="ruby-keyword">end</span></pre>
291
+ </div><!-- upload-source -->
292
+
293
+ </div>
294
+
295
+
296
+
297
+
298
+ </div><!-- upload-method -->
299
+
300
+
301
+ </div><!-- public-instance-method-details -->
302
+
303
+ </div><!-- 5Buntitled-5D -->
304
+
305
+
306
+ </div><!-- documentation -->
307
+
308
+ <div id="validator-badges">
309
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
310
+ <p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
311
+ Rdoc Generator</a> 2</small>.</p>
312
+ </div>
313
+
314
+ </body>
315
+ </html>
316
+