pho 0.7.4 → 0.7.5
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGES +9 -0
- data/Rakefile +1 -1
- data/doc/index.html +1 -1
- data/doc/rdoc/classes/Pho/CommandLine.html +108 -108
- data/doc/rdoc/classes/Pho/DatatypeProperty.html +12 -12
- data/doc/rdoc/classes/Pho/Enrichment/StoreEnricher.html +29 -29
- data/doc/rdoc/classes/Pho/Etags.html +36 -36
- data/doc/rdoc/classes/Pho/Facet/Results.html +19 -19
- data/doc/rdoc/classes/Pho/Facet/Term.html +6 -6
- data/doc/rdoc/classes/Pho/FieldPredicateMap.html +146 -112
- data/doc/rdoc/classes/Pho/FieldWeighting.html +12 -12
- data/doc/rdoc/classes/Pho/Job.html +64 -64
- data/doc/rdoc/classes/Pho/Jobs.html +60 -60
- data/doc/rdoc/classes/Pho/OAI.html +1 -0
- data/doc/rdoc/classes/Pho/OAI/Record.html +1 -1
- data/doc/rdoc/classes/Pho/OAI/Records.html +4 -4
- data/doc/rdoc/classes/Pho/QueryProfile.html +66 -66
- data/doc/rdoc/classes/Pho/RDF/Parser.html +24 -24
- data/doc/rdoc/classes/Pho/ResourceHash/Converter.html +36 -36
- data/doc/rdoc/classes/Pho/ResourceHash/SetAlgebra.html +12 -12
- data/doc/rdoc/classes/Pho/Snapshot.html +35 -35
- data/doc/rdoc/classes/Pho/Status.html +26 -26
- data/doc/rdoc/classes/Pho/Store.html +215 -215
- data/doc/rdoc/classes/Pho/StoreSparqlClient.html +12 -12
- data/doc/rdoc/classes/String.html +1 -1
- data/doc/rdoc/created.rid +1 -1
- data/doc/rdoc/files/CHANGES.html +17 -1
- data/doc/rdoc/files/lib/pho/field_predicate_map_rb.html +1 -1
- data/doc/rdoc/files/lib/pho/oai_rb.html +1 -1
- data/doc/rdoc/files/lib/pho_rb.html +2 -1
- data/doc/rdoc/fr_class_index.html +1 -0
- data/doc/rdoc/fr_method_index.html +152 -149
- data/lib/pho.rb +1 -0
- data/lib/pho/field_predicate_map.rb +18 -7
- data/lib/pho/oai.rb +25 -0
- data/tests/tc_command_line.rb +1 -1
- data/tests/tc_field_predicate_map.rb +36 -5
- data/tests/tc_oai.rb +37 -0
- metadata +4 -4
@@ -92,12 +92,12 @@ Class for converting to and from resource hashes
|
|
92
92
|
<h3 class="section-bar">Methods</h3>
|
93
93
|
|
94
94
|
<div class="name-list">
|
95
|
-
<a href="#
|
96
|
-
<a href="#
|
97
|
-
<a href="#
|
98
|
-
<a href="#
|
99
|
-
<a href="#
|
100
|
-
<a href="#
|
95
|
+
<a href="#M000088">parse</a>
|
96
|
+
<a href="#M000084">parse_json</a>
|
97
|
+
<a href="#M000086">parse_ntriples</a>
|
98
|
+
<a href="#M000085">parse_rdfxml</a>
|
99
|
+
<a href="#M000087">parse_turtle</a>
|
100
|
+
<a href="#M000089">serialize_json</a>
|
101
101
|
</div>
|
102
102
|
</div>
|
103
103
|
|
@@ -119,11 +119,11 @@ Class for converting to and from resource hashes
|
|
119
119
|
<div id="methods">
|
120
120
|
<h3 class="section-bar">Public Class methods</h3>
|
121
121
|
|
122
|
-
<div id="method-
|
123
|
-
<a name="
|
122
|
+
<div id="method-M000088" class="method-detail">
|
123
|
+
<a name="M000088"></a>
|
124
124
|
|
125
125
|
<div class="method-heading">
|
126
|
-
<a href="#
|
126
|
+
<a href="#M000088" class="method-signature">
|
127
127
|
<span class="method-name">parse</span><span class="method-args">(data, base_uri, format="rdfxml")</span>
|
128
128
|
</a>
|
129
129
|
</div>
|
@@ -139,8 +139,8 @@ href="../ResourceHash.html">ResourceHash</a>
|
|
139
139
|
base_uri:: base uri of the data
|
140
140
|
</pre>
|
141
141
|
<p><a class="source-toggle" href="#"
|
142
|
-
onclick="toggleCode('
|
143
|
-
<div class="method-source-code" id="
|
142
|
+
onclick="toggleCode('M000088-source');return false;">[Source]</a></p>
|
143
|
+
<div class="method-source-code" id="M000088-source">
|
144
144
|
<pre>
|
145
145
|
<span class="ruby-comment cmt"># File lib/pho/converter.rb, line 53</span>
|
146
146
|
<span class="ruby-keyword kw">def</span> <span class="ruby-constant">Converter</span>.<span class="ruby-identifier">parse</span>(<span class="ruby-identifier">data</span>, <span class="ruby-identifier">base_uri</span>, <span class="ruby-identifier">format</span>=<span class="ruby-value str">"rdfxml"</span>)
|
@@ -162,11 +162,11 @@ href="../ResourceHash.html">ResourceHash</a>
|
|
162
162
|
</div>
|
163
163
|
</div>
|
164
164
|
|
165
|
-
<div id="method-
|
166
|
-
<a name="
|
165
|
+
<div id="method-M000084" class="method-detail">
|
166
|
+
<a name="M000084"></a>
|
167
167
|
|
168
168
|
<div class="method-heading">
|
169
|
-
<a href="#
|
169
|
+
<a href="#M000084" class="method-signature">
|
170
170
|
<span class="method-name">parse_json</span><span class="method-args">(json)</span>
|
171
171
|
</a>
|
172
172
|
</div>
|
@@ -181,8 +181,8 @@ Simply invokes the JSON parser.
|
|
181
181
|
json:: valid RDF-in-JSON
|
182
182
|
</pre>
|
183
183
|
<p><a class="source-toggle" href="#"
|
184
|
-
onclick="toggleCode('
|
185
|
-
<div class="method-source-code" id="
|
184
|
+
onclick="toggleCode('M000084-source');return false;">[Source]</a></p>
|
185
|
+
<div class="method-source-code" id="M000084-source">
|
186
186
|
<pre>
|
187
187
|
<span class="ruby-comment cmt"># File lib/pho/converter.rb, line 23</span>
|
188
188
|
<span class="ruby-keyword kw">def</span> <span class="ruby-constant">Converter</span>.<span class="ruby-identifier">parse_json</span>(<span class="ruby-identifier">json</span>)
|
@@ -193,11 +193,11 @@ Simply invokes the JSON parser.
|
|
193
193
|
</div>
|
194
194
|
</div>
|
195
195
|
|
196
|
-
<div id="method-
|
197
|
-
<a name="
|
196
|
+
<div id="method-M000086" class="method-detail">
|
197
|
+
<a name="M000086"></a>
|
198
198
|
|
199
199
|
<div class="method-heading">
|
200
|
-
<a href="#
|
200
|
+
<a href="#M000086" class="method-signature">
|
201
201
|
<span class="method-name">parse_ntriples</span><span class="method-args">(ntriples, base_uri)</span>
|
202
202
|
</a>
|
203
203
|
</div>
|
@@ -210,8 +210,8 @@ Parse a string containing N-Triples into a resource hash
|
|
210
210
|
ntriples:: a String containing N-Triples
|
211
211
|
</pre>
|
212
212
|
<p><a class="source-toggle" href="#"
|
213
|
-
onclick="toggleCode('
|
214
|
-
<div class="method-source-code" id="
|
213
|
+
onclick="toggleCode('M000086-source');return false;">[Source]</a></p>
|
214
|
+
<div class="method-source-code" id="M000086-source">
|
215
215
|
<pre>
|
216
216
|
<span class="ruby-comment cmt"># File lib/pho/converter.rb, line 37</span>
|
217
217
|
<span class="ruby-keyword kw">def</span> <span class="ruby-constant">Converter</span>.<span class="ruby-identifier">parse_ntriples</span>(<span class="ruby-identifier">ntriples</span>, <span class="ruby-identifier">base_uri</span>)
|
@@ -222,11 +222,11 @@ Parse a string containing N-Triples into a resource hash
|
|
222
222
|
</div>
|
223
223
|
</div>
|
224
224
|
|
225
|
-
<div id="method-
|
226
|
-
<a name="
|
225
|
+
<div id="method-M000085" class="method-detail">
|
226
|
+
<a name="M000085"></a>
|
227
227
|
|
228
228
|
<div class="method-heading">
|
229
|
-
<a href="#
|
229
|
+
<a href="#M000085" class="method-signature">
|
230
230
|
<span class="method-name">parse_rdfxml</span><span class="method-args">(rdfxml, base_uri)</span>
|
231
231
|
</a>
|
232
232
|
</div>
|
@@ -240,8 +240,8 @@ hash
|
|
240
240
|
rdfxml: a String containing RDF/XML
|
241
241
|
</pre>
|
242
242
|
<p><a class="source-toggle" href="#"
|
243
|
-
onclick="toggleCode('
|
244
|
-
<div class="method-source-code" id="
|
243
|
+
onclick="toggleCode('M000085-source');return false;">[Source]</a></p>
|
244
|
+
<div class="method-source-code" id="M000085-source">
|
245
245
|
<pre>
|
246
246
|
<span class="ruby-comment cmt"># File lib/pho/converter.rb, line 30</span>
|
247
247
|
<span class="ruby-keyword kw">def</span> <span class="ruby-constant">Converter</span>.<span class="ruby-identifier">parse_rdfxml</span>(<span class="ruby-identifier">rdfxml</span>, <span class="ruby-identifier">base_uri</span>)
|
@@ -252,11 +252,11 @@ hash
|
|
252
252
|
</div>
|
253
253
|
</div>
|
254
254
|
|
255
|
-
<div id="method-
|
256
|
-
<a name="
|
255
|
+
<div id="method-M000087" class="method-detail">
|
256
|
+
<a name="M000087"></a>
|
257
257
|
|
258
258
|
<div class="method-heading">
|
259
|
-
<a href="#
|
259
|
+
<a href="#M000087" class="method-signature">
|
260
260
|
<span class="method-name">parse_turtle</span><span class="method-args">(turtle, base_uri)</span>
|
261
261
|
</a>
|
262
262
|
</div>
|
@@ -269,8 +269,8 @@ Parse a string containing Turtle into a resource hash
|
|
269
269
|
ntriples:: a String containing Turtle
|
270
270
|
</pre>
|
271
271
|
<p><a class="source-toggle" href="#"
|
272
|
-
onclick="toggleCode('
|
273
|
-
<div class="method-source-code" id="
|
272
|
+
onclick="toggleCode('M000087-source');return false;">[Source]</a></p>
|
273
|
+
<div class="method-source-code" id="M000087-source">
|
274
274
|
<pre>
|
275
275
|
<span class="ruby-comment cmt"># File lib/pho/converter.rb, line 44</span>
|
276
276
|
<span class="ruby-keyword kw">def</span> <span class="ruby-constant">Converter</span>.<span class="ruby-identifier">parse_turtle</span>(<span class="ruby-identifier">turtle</span>, <span class="ruby-identifier">base_uri</span>)
|
@@ -281,11 +281,11 @@ Parse a string containing Turtle into a resource hash
|
|
281
281
|
</div>
|
282
282
|
</div>
|
283
283
|
|
284
|
-
<div id="method-
|
285
|
-
<a name="
|
284
|
+
<div id="method-M000089" class="method-detail">
|
285
|
+
<a name="M000089"></a>
|
286
286
|
|
287
287
|
<div class="method-heading">
|
288
|
-
<a href="#
|
288
|
+
<a href="#M000089" class="method-signature">
|
289
289
|
<span class="method-name">serialize_json</span><span class="method-args">(hash)</span>
|
290
290
|
</a>
|
291
291
|
</div>
|
@@ -298,8 +298,8 @@ Serialize a resource hash as <a href="../RDF.html">RDF</a>-in-JSON
|
|
298
298
|
hash:: the resource hash to serialize
|
299
299
|
</pre>
|
300
300
|
<p><a class="source-toggle" href="#"
|
301
|
-
onclick="toggleCode('
|
302
|
-
<div class="method-source-code" id="
|
301
|
+
onclick="toggleCode('M000089-source');return false;">[Source]</a></p>
|
302
|
+
<div class="method-source-code" id="M000089-source">
|
303
303
|
<pre>
|
304
304
|
<span class="ruby-comment cmt"># File lib/pho/converter.rb, line 71</span>
|
305
305
|
<span class="ruby-keyword kw">def</span> <span class="ruby-constant">Converter</span>.<span class="ruby-identifier">serialize_json</span>(<span class="ruby-identifier">hash</span>)
|
@@ -92,8 +92,8 @@ Class providing set algebra methods over triple hashes
|
|
92
92
|
<h3 class="section-bar">Methods</h3>
|
93
93
|
|
94
94
|
<div class="name-list">
|
95
|
-
<a href="#
|
96
|
-
<a href="#
|
95
|
+
<a href="#M000090">minus</a>
|
96
|
+
<a href="#M000091">object_in_array?</a>
|
97
97
|
</div>
|
98
98
|
</div>
|
99
99
|
|
@@ -115,11 +115,11 @@ Class providing set algebra methods over triple hashes
|
|
115
115
|
<div id="methods">
|
116
116
|
<h3 class="section-bar">Public Class methods</h3>
|
117
117
|
|
118
|
-
<div id="method-
|
119
|
-
<a name="
|
118
|
+
<div id="method-M000090" class="method-detail">
|
119
|
+
<a name="M000090"></a>
|
120
120
|
|
121
121
|
<div class="method-heading">
|
122
|
-
<a href="#
|
122
|
+
<a href="#M000090" class="method-signature">
|
123
123
|
<span class="method-name">minus</span><span class="method-args">(first, second)</span>
|
124
124
|
</a>
|
125
125
|
</div>
|
@@ -139,8 +139,8 @@ first graph but which are not present in the second.
|
|
139
139
|
second:: the second graph.
|
140
140
|
</pre>
|
141
141
|
<p><a class="source-toggle" href="#"
|
142
|
-
onclick="toggleCode('
|
143
|
-
<div class="method-source-code" id="
|
142
|
+
onclick="toggleCode('M000090-source');return false;">[Source]</a></p>
|
143
|
+
<div class="method-source-code" id="M000090-source">
|
144
144
|
<pre>
|
145
145
|
<span class="ruby-comment cmt"># File lib/pho/resource_hash.rb, line 20</span>
|
146
146
|
<span class="ruby-keyword kw">def</span> <span class="ruby-constant">SetAlgebra</span>.<span class="ruby-identifier">minus</span>(<span class="ruby-identifier">first</span>, <span class="ruby-identifier">second</span>)
|
@@ -183,11 +183,11 @@ first graph but which are not present in the second.
|
|
183
183
|
</div>
|
184
184
|
</div>
|
185
185
|
|
186
|
-
<div id="method-
|
187
|
-
<a name="
|
186
|
+
<div id="method-M000091" class="method-detail">
|
187
|
+
<a name="M000091"></a>
|
188
188
|
|
189
189
|
<div class="method-heading">
|
190
|
-
<a href="#
|
190
|
+
<a href="#M000091" class="method-signature">
|
191
191
|
<span class="method-name">object_in_array?</span><span class="method-args">(array, val)</span>
|
192
192
|
</a>
|
193
193
|
</div>
|
@@ -198,8 +198,8 @@ Is there an object in the specified array, that matches the provided
|
|
198
198
|
description
|
199
199
|
</p>
|
200
200
|
<p><a class="source-toggle" href="#"
|
201
|
-
onclick="toggleCode('
|
202
|
-
<div class="method-source-code" id="
|
201
|
+
onclick="toggleCode('M000091-source');return false;">[Source]</a></p>
|
202
|
+
<div class="method-source-code" id="M000091-source">
|
203
203
|
<pre>
|
204
204
|
<span class="ruby-comment cmt"># File lib/pho/resource_hash.rb, line 57</span>
|
205
205
|
<span class="ruby-keyword kw">def</span> <span class="ruby-constant">SetAlgebra</span>.<span class="ruby-identifier">object_in_array?</span>(<span class="ruby-identifier">array</span>, <span class="ruby-identifier">val</span>)
|
@@ -81,7 +81,7 @@
|
|
81
81
|
<div id="description">
|
82
82
|
<p>
|
83
83
|
In the Talis Platform a "snapshot" is an <a
|
84
|
-
href="Snapshot.html#
|
84
|
+
href="Snapshot.html#M000198">backup</a> of the contents of a <a
|
85
85
|
href="Store.html">Store</a>
|
86
86
|
</p>
|
87
87
|
<p>
|
@@ -102,11 +102,11 @@ A snapshot can be generated (or scheduled) using the Store.snapshot method.
|
|
102
102
|
<h3 class="section-bar">Methods</h3>
|
103
103
|
|
104
104
|
<div class="name-list">
|
105
|
-
<a href="#
|
106
|
-
<a href="#
|
107
|
-
<a href="#
|
108
|
-
<a href="#
|
109
|
-
<a href="#
|
105
|
+
<a href="#M000198">backup</a>
|
106
|
+
<a href="#M000196">new</a>
|
107
|
+
<a href="#M000195">parse</a>
|
108
|
+
<a href="#M000194">read_from_store</a>
|
109
|
+
<a href="#M000197">read_md5</a>
|
110
110
|
</div>
|
111
111
|
</div>
|
112
112
|
|
@@ -176,19 +176,19 @@ The URL from which the snapshot can be retrieved
|
|
176
176
|
<div id="methods">
|
177
177
|
<h3 class="section-bar">Public Class methods</h3>
|
178
178
|
|
179
|
-
<div id="method-
|
180
|
-
<a name="
|
179
|
+
<div id="method-M000196" class="method-detail">
|
180
|
+
<a name="M000196"></a>
|
181
181
|
|
182
182
|
<div class="method-heading">
|
183
|
-
<a href="#
|
183
|
+
<a href="#M000196" class="method-signature">
|
184
184
|
<span class="method-name">new</span><span class="method-args">(url, md5_url, size, units, date)</span>
|
185
185
|
</a>
|
186
186
|
</div>
|
187
187
|
|
188
188
|
<div class="method-description">
|
189
189
|
<p><a class="source-toggle" href="#"
|
190
|
-
onclick="toggleCode('
|
191
|
-
<div class="method-source-code" id="
|
190
|
+
onclick="toggleCode('M000196-source');return false;">[Source]</a></p>
|
191
|
+
<div class="method-source-code" id="M000196-source">
|
192
192
|
<pre>
|
193
193
|
<span class="ruby-comment cmt"># File lib/pho/snapshot.rb, line 81</span>
|
194
194
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">url</span>, <span class="ruby-identifier">md5_url</span>, <span class="ruby-identifier">size</span>, <span class="ruby-identifier">units</span>, <span class="ruby-identifier">date</span>)
|
@@ -203,21 +203,21 @@ The URL from which the snapshot can be retrieved
|
|
203
203
|
</div>
|
204
204
|
</div>
|
205
205
|
|
206
|
-
<div id="method-
|
207
|
-
<a name="
|
206
|
+
<div id="method-M000195" class="method-detail">
|
207
|
+
<a name="M000195"></a>
|
208
208
|
|
209
209
|
<div class="method-heading">
|
210
|
-
<a href="#
|
210
|
+
<a href="#M000195" class="method-signature">
|
211
211
|
<span class="method-name">parse</span><span class="method-args">(storeuri, content)</span>
|
212
212
|
</a>
|
213
213
|
</div>
|
214
214
|
|
215
215
|
<div class="method-description">
|
216
216
|
<p>
|
217
|
-
Class method to <a href="Snapshot.html#
|
217
|
+
Class method to <a href="Snapshot.html#M000195">parse</a> the <a
|
218
218
|
href="RDF.html">RDF</a> response from the API, e.g. as produced by the <a
|
219
|
-
href="Store.html#
|
220
|
-
href="Snapshot.html#
|
219
|
+
href="Store.html#M000188">Store.get_snapshots</a> method and create a <a
|
220
|
+
href="Snapshot.html#M000196">new</a> <a href="Snapshot.html">Snapshot</a>
|
221
221
|
object. At the moment the Platform only supports single snapshot.
|
222
222
|
</p>
|
223
223
|
<p>
|
@@ -229,8 +229,8 @@ snapshot can be found, then the method returns nil
|
|
229
229
|
content:: response from the API
|
230
230
|
</pre>
|
231
231
|
<p><a class="source-toggle" href="#"
|
232
|
-
onclick="toggleCode('
|
233
|
-
<div class="method-source-code" id="
|
232
|
+
onclick="toggleCode('M000195-source');return false;">[Source]</a></p>
|
233
|
+
<div class="method-source-code" id="M000195-source">
|
234
234
|
<pre>
|
235
235
|
<span class="ruby-comment cmt"># File lib/pho/snapshot.rb, line 53</span>
|
236
236
|
<span class="ruby-keyword kw">def</span> <span class="ruby-constant">Snapshot</span>.<span class="ruby-identifier">parse</span>(<span class="ruby-identifier">storeuri</span>, <span class="ruby-identifier">content</span>)
|
@@ -265,11 +265,11 @@ snapshot can be found, then the method returns nil
|
|
265
265
|
</div>
|
266
266
|
</div>
|
267
267
|
|
268
|
-
<div id="method-
|
269
|
-
<a name="
|
268
|
+
<div id="method-M000194" class="method-detail">
|
269
|
+
<a name="M000194"></a>
|
270
270
|
|
271
271
|
<div class="method-heading">
|
272
|
-
<a href="#
|
272
|
+
<a href="#M000194" class="method-signature">
|
273
273
|
<span class="method-name">read_from_store</span><span class="method-args">(store)</span>
|
274
274
|
</a>
|
275
275
|
</div>
|
@@ -284,8 +284,8 @@ Read snapshot data from the given store
|
|
284
284
|
</td></tr>
|
285
285
|
</table>
|
286
286
|
<p><a class="source-toggle" href="#"
|
287
|
-
onclick="toggleCode('
|
288
|
-
<div class="method-source-code" id="
|
287
|
+
onclick="toggleCode('M000194-source');return false;">[Source]</a></p>
|
288
|
+
<div class="method-source-code" id="M000194-source">
|
289
289
|
<pre>
|
290
290
|
<span class="ruby-comment cmt"># File lib/pho/snapshot.rb, line 34</span>
|
291
291
|
<span class="ruby-keyword kw">def</span> <span class="ruby-constant">Snapshot</span>.<span class="ruby-identifier">read_from_store</span>(<span class="ruby-identifier">store</span>)
|
@@ -305,11 +305,11 @@ Read snapshot data from the given store
|
|
305
305
|
|
306
306
|
<h3 class="section-bar">Public Instance methods</h3>
|
307
307
|
|
308
|
-
<div id="method-
|
309
|
-
<a name="
|
308
|
+
<div id="method-M000198" class="method-detail">
|
309
|
+
<a name="M000198"></a>
|
310
310
|
|
311
311
|
<div class="method-heading">
|
312
|
-
<a href="#
|
312
|
+
<a href="#M000198" class="method-signature">
|
313
313
|
<span class="method-name">backup</span><span class="method-args">(store, dir=Dir.tmpdir)</span>
|
314
314
|
</a>
|
315
315
|
</div>
|
@@ -322,7 +322,7 @@ published value. If they don‘t match then a RuntimeError will be
|
|
322
322
|
raised
|
323
323
|
</p>
|
324
324
|
<table>
|
325
|
-
<tr><td valign="top">store:</td><td>the store to <a href="Snapshot.html#
|
325
|
+
<tr><td valign="top">store:</td><td>the store to <a href="Snapshot.html#M000198">backup</a>
|
326
326
|
|
327
327
|
</td></tr>
|
328
328
|
<tr><td valign="top">dir:</td><td>directory in which snapshot will be stored
|
@@ -330,8 +330,8 @@ raised
|
|
330
330
|
</td></tr>
|
331
331
|
</table>
|
332
332
|
<p><a class="source-toggle" href="#"
|
333
|
-
onclick="toggleCode('
|
334
|
-
<div class="method-source-code" id="
|
333
|
+
onclick="toggleCode('M000198-source');return false;">[Source]</a></p>
|
334
|
+
<div class="method-source-code" id="M000198-source">
|
335
335
|
<pre>
|
336
336
|
<span class="ruby-comment cmt"># File lib/pho/snapshot.rb, line 101</span>
|
337
337
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">backup</span>(<span class="ruby-identifier">store</span>, <span class="ruby-identifier">dir</span>=<span class="ruby-constant">Dir</span>.<span class="ruby-identifier">tmpdir</span>)
|
@@ -361,11 +361,11 @@ raised
|
|
361
361
|
</div>
|
362
362
|
</div>
|
363
363
|
|
364
|
-
<div id="method-
|
365
|
-
<a name="
|
364
|
+
<div id="method-M000197" class="method-detail">
|
365
|
+
<a name="M000197"></a>
|
366
366
|
|
367
367
|
<div class="method-heading">
|
368
|
-
<a href="#
|
368
|
+
<a href="#M000197" class="method-signature">
|
369
369
|
<span class="method-name">read_md5</span><span class="method-args">(client=HttpClient.new())</span>
|
370
370
|
</a>
|
371
371
|
</div>
|
@@ -375,8 +375,8 @@ raised
|
|
375
375
|
Read the published MD5 value
|
376
376
|
</p>
|
377
377
|
<p><a class="source-toggle" href="#"
|
378
|
-
onclick="toggleCode('
|
379
|
-
<div class="method-source-code" id="
|
378
|
+
onclick="toggleCode('M000197-source');return false;">[Source]</a></p>
|
379
|
+
<div class="method-source-code" id="M000197-source">
|
380
380
|
<pre>
|
381
381
|
<span class="ruby-comment cmt"># File lib/pho/snapshot.rb, line 91</span>
|
382
382
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">read_md5</span>(<span class="ruby-identifier">client</span>=<span class="ruby-constant">HttpClient</span>.<span class="ruby-identifier">new</span>())
|
@@ -92,10 +92,10 @@ Captures status information relating to a store
|
|
92
92
|
<h3 class="section-bar">Methods</h3>
|
93
93
|
|
94
94
|
<div class="name-list">
|
95
|
-
<a href="#
|
96
|
-
<a href="#
|
97
|
-
<a href="#
|
98
|
-
<a href="#
|
95
|
+
<a href="#M000131">new</a>
|
96
|
+
<a href="#M000132">read_from_store</a>
|
97
|
+
<a href="#M000133">readable?</a>
|
98
|
+
<a href="#M000134">writeable?</a>
|
99
99
|
</div>
|
100
100
|
</div>
|
101
101
|
|
@@ -153,19 +153,19 @@ Interval before status should be requested again.
|
|
153
153
|
<div id="methods">
|
154
154
|
<h3 class="section-bar">Public Class methods</h3>
|
155
155
|
|
156
|
-
<div id="method-
|
157
|
-
<a name="
|
156
|
+
<div id="method-M000131" class="method-detail">
|
157
|
+
<a name="M000131"></a>
|
158
158
|
|
159
159
|
<div class="method-heading">
|
160
|
-
<a href="#
|
160
|
+
<a href="#M000131" class="method-signature">
|
161
161
|
<span class="method-name">new</span><span class="method-args">(retry_interval, status_message, access_mode)</span>
|
162
162
|
</a>
|
163
163
|
</div>
|
164
164
|
|
165
165
|
<div class="method-description">
|
166
166
|
<p><a class="source-toggle" href="#"
|
167
|
-
onclick="toggleCode('
|
168
|
-
<div class="method-source-code" id="
|
167
|
+
onclick="toggleCode('M000131-source');return false;">[Source]</a></p>
|
168
|
+
<div class="method-source-code" id="M000131-source">
|
169
169
|
<pre>
|
170
170
|
<span class="ruby-comment cmt"># File lib/pho/status.rb, line 25</span>
|
171
171
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">retry_interval</span>, <span class="ruby-identifier">status_message</span>, <span class="ruby-identifier">access_mode</span>)
|
@@ -178,11 +178,11 @@ Interval before status should be requested again.
|
|
178
178
|
</div>
|
179
179
|
</div>
|
180
180
|
|
181
|
-
<div id="method-
|
182
|
-
<a name="
|
181
|
+
<div id="method-M000132" class="method-detail">
|
182
|
+
<a name="M000132"></a>
|
183
183
|
|
184
184
|
<div class="method-heading">
|
185
|
-
<a href="#
|
185
|
+
<a href="#M000132" class="method-signature">
|
186
186
|
<span class="method-name">read_from_store</span><span class="method-args">(store)</span>
|
187
187
|
</a>
|
188
188
|
</div>
|
@@ -202,8 +202,8 @@ href="Status.html">Status</a> object.
|
|
202
202
|
</td></tr>
|
203
203
|
</table>
|
204
204
|
<p><a class="source-toggle" href="#"
|
205
|
-
onclick="toggleCode('
|
206
|
-
<div class="method-source-code" id="
|
205
|
+
onclick="toggleCode('M000132-source');return false;">[Source]</a></p>
|
206
|
+
<div class="method-source-code" id="M000132-source">
|
207
207
|
<pre>
|
208
208
|
<span class="ruby-comment cmt"># File lib/pho/status.rb, line 36</span>
|
209
209
|
<span class="ruby-keyword kw">def</span> <span class="ruby-constant">Status</span>.<span class="ruby-identifier">read_from_store</span>(<span class="ruby-identifier">store</span>)
|
@@ -229,22 +229,22 @@ href="Status.html">Status</a> object.
|
|
229
229
|
|
230
230
|
<h3 class="section-bar">Public Instance methods</h3>
|
231
231
|
|
232
|
-
<div id="method-
|
233
|
-
<a name="
|
232
|
+
<div id="method-M000133" class="method-detail">
|
233
|
+
<a name="M000133"></a>
|
234
234
|
|
235
235
|
<div class="method-heading">
|
236
|
-
<a href="#
|
236
|
+
<a href="#M000133" class="method-signature">
|
237
237
|
<span class="method-name">readable?</span><span class="method-args">()</span>
|
238
238
|
</a>
|
239
239
|
</div>
|
240
240
|
|
241
241
|
<div class="method-description">
|
242
242
|
<p>
|
243
|
-
Is the store <a href="Status.html#
|
243
|
+
Is the store <a href="Status.html#M000133">readable?</a>
|
244
244
|
</p>
|
245
245
|
<p><a class="source-toggle" href="#"
|
246
|
-
onclick="toggleCode('
|
247
|
-
<div class="method-source-code" id="
|
246
|
+
onclick="toggleCode('M000133-source');return false;">[Source]</a></p>
|
247
|
+
<div class="method-source-code" id="M000133-source">
|
248
248
|
<pre>
|
249
249
|
<span class="ruby-comment cmt"># File lib/pho/status.rb, line 54</span>
|
250
250
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">readable?</span>
|
@@ -255,22 +255,22 @@ Is the store <a href="Status.html#M000130">readable?</a>
|
|
255
255
|
</div>
|
256
256
|
</div>
|
257
257
|
|
258
|
-
<div id="method-
|
259
|
-
<a name="
|
258
|
+
<div id="method-M000134" class="method-detail">
|
259
|
+
<a name="M000134"></a>
|
260
260
|
|
261
261
|
<div class="method-heading">
|
262
|
-
<a href="#
|
262
|
+
<a href="#M000134" class="method-signature">
|
263
263
|
<span class="method-name">writeable?</span><span class="method-args">()</span>
|
264
264
|
</a>
|
265
265
|
</div>
|
266
266
|
|
267
267
|
<div class="method-description">
|
268
268
|
<p>
|
269
|
-
Is the store <a href="Status.html#
|
269
|
+
Is the store <a href="Status.html#M000134">writeable?</a>
|
270
270
|
</p>
|
271
271
|
<p><a class="source-toggle" href="#"
|
272
|
-
onclick="toggleCode('
|
273
|
-
<div class="method-source-code" id="
|
272
|
+
onclick="toggleCode('M000134-source');return false;">[Source]</a></p>
|
273
|
+
<div class="method-source-code" id="M000134-source">
|
274
274
|
<pre>
|
275
275
|
<span class="ruby-comment cmt"># File lib/pho/status.rb, line 59</span>
|
276
276
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">writeable?</span>
|