rubu 0.0.1 → 0.0.2

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.
@@ -73,12 +73,12 @@
73
73
 
74
74
  <dt class="r1">Inherits:</dt>
75
75
  <dd class="r1">
76
- <span class="inheritName"><span class='object_link'><a href="Action.html" title="Rubu::Action (class)">Action</a></span></span>
76
+ <span class="inheritName"><span class='object_link'><a href="Move.html" title="Rubu::Move (class)">Move</a></span></span>
77
77
 
78
78
  <ul class="fullTree">
79
79
  <li>Object</li>
80
80
 
81
- <li class="next"><span class='object_link'><a href="Action.html" title="Rubu::Action (class)">Action</a></span></li>
81
+ <li class="next"><span class='object_link'><a href="Move.html" title="Rubu::Move (class)">Move</a></span></li>
82
82
 
83
83
  <li class="next">Rubu::RubyCommand</li>
84
84
 
@@ -120,8 +120,8 @@
120
120
 
121
121
  <h2>Instance Attribute Summary</h2>
122
122
 
123
- <h3 class="inherited">Attributes inherited from <span class='object_link'><a href="Action.html" title="Rubu::Action (class)">Action</a></span></h3>
124
- <p class="inherited"><span class='object_link'><a href="Action.html#errmsg-instance_method" title="Rubu::Action#errmsg (method)">#errmsg</a></span>, <span class='object_link'><a href="Action.html#output-instance_method" title="Rubu::Action#output (method)">#output</a></span>, <span class='object_link'><a href="Action.html#status-instance_method" title="Rubu::Action#status (method)">#status</a></span>, <span class='object_link'><a href="Action.html#subs-instance_method" title="Rubu::Action#subs (method)">#subs</a></span></p>
123
+ <h3 class="inherited">Attributes inherited from <span class='object_link'><a href="Move.html" title="Rubu::Move (class)">Move</a></span></h3>
124
+ <p class="inherited"><span class='object_link'><a href="Move.html#errmsg-instance_method" title="Rubu::Move#errmsg (method)">#errmsg</a></span>, <span class='object_link'><a href="Move.html#output-instance_method" title="Rubu::Move#output (method)">#output</a></span>, <span class='object_link'><a href="Move.html#status-instance_method" title="Rubu::Move#status (method)">#status</a></span>, <span class='object_link'><a href="Move.html#subs-instance_method" title="Rubu::Move#subs (method)">#subs</a></span></p>
125
125
 
126
126
 
127
127
 
@@ -175,7 +175,9 @@
175
175
 
176
176
 
177
177
 
178
- <span class="summary_desc"><div class='inline'></div></span>
178
+ <span class="summary_desc"><div class='inline'>
179
+ <p>Execution content.</p>
180
+ </div></span>
179
181
 
180
182
  </li>
181
183
 
@@ -192,8 +194,8 @@
192
194
 
193
195
 
194
196
 
195
- <h3 class="inherited">Methods inherited from <span class='object_link'><a href="Action.html" title="Rubu::Action (class)">Action</a></span></h3>
196
- <p class="inherited"><span class='object_link'><a href="Action.html#display-instance_method" title="Rubu::Action#display (method)">#display</a></span>, <span class='object_link'><a href="Action.html#error-instance_method" title="Rubu::Action#error (method)">#error</a></span>, <span class='object_link'><a href="Action.html#host-instance_method" title="Rubu::Action#host (method)">#host</a></span>, <span class='object_link'><a href="Action.html#host_in-instance_method" title="Rubu::Action#host_in (method)">#host_in</a></span>, <span class='object_link'><a href="Action.html#host_out-instance_method" title="Rubu::Action#host_out (method)">#host_out</a></span>, <span class='object_link'><a href="Action.html#pick-instance_method" title="Rubu::Action#pick (method)">#pick</a></span>, <span class='object_link'><a href="Action.html#use-instance_method" title="Rubu::Action#use (method)">#use</a></span></p>
197
+ <h3 class="inherited">Methods inherited from <span class='object_link'><a href="Move.html" title="Rubu::Move (class)">Move</a></span></h3>
198
+ <p class="inherited"><span class='object_link'><a href="Move.html#display-instance_method" title="Rubu::Move#display (method)">#display</a></span>, <span class='object_link'><a href="Move.html#error-instance_method" title="Rubu::Move#error (method)">#error</a></span>, <span class='object_link'><a href="Move.html#host-instance_method" title="Rubu::Move#host (method)">#host</a></span>, <span class='object_link'><a href="Move.html#host_in-instance_method" title="Rubu::Move#host_in (method)">#host_in</a></span>, <span class='object_link'><a href="Move.html#host_out-instance_method" title="Rubu::Move#host_out (method)">#host_out</a></span>, <span class='object_link'><a href="Move.html#use-instance_method" title="Rubu::Move#use (method)">#use</a></span></p>
197
199
  <div id="constructor_details" class="method_details_list">
198
200
  <h2>Constructor Details</h2>
199
201
 
@@ -223,14 +225,14 @@
223
225
  <pre class="lines">
224
226
 
225
227
 
226
- 150
227
- 151
228
- 152
229
- 153
230
- 154</pre>
228
+ 158
229
+ 159
230
+ 160
231
+ 161
232
+ 162</pre>
231
233
  </td>
232
234
  <td>
233
- <pre class="code"><span class="info file"># File 'lib/rubu.rb', line 150</span>
235
+ <pre class="code"><span class="info file"># File 'lib/rubu.rb', line 158</span>
234
236
 
235
237
  <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span> <span class='id identifier rubyid_desc'>desc</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='op'>&amp;</span><span class='id identifier rubyid_cmd'>cmd</span> <span class='rparen'>)</span>
236
238
  <span class='kw'>super</span><span class='lparen'>(</span><span class='rparen'>)</span>
@@ -258,29 +260,40 @@
258
260
 
259
261
 
260
262
 
261
- </h3><table class="source_code">
263
+ </h3><div class="docstring">
264
+ <div class="discussion">
265
+
266
+ <p>Execution content.</p>
267
+
268
+
269
+ </div>
270
+ </div>
271
+ <div class="tags">
272
+
273
+
274
+ </div><table class="source_code">
262
275
  <tr>
263
276
  <td>
264
277
  <pre class="lines">
265
278
 
266
279
 
267
- 156
268
- 157
269
- 158
270
- 159
271
- 160
272
- 161
273
- 162
274
- 163
275
- 164
276
280
  165
277
281
  166
278
282
  167
279
283
  168
280
- 169</pre>
284
+ 169
285
+ 170
286
+ 171
287
+ 172
288
+ 173
289
+ 174
290
+ 175
291
+ 176
292
+ 177
293
+ 178</pre>
281
294
  </td>
282
295
  <td>
283
- <pre class="code"><span class="info file"># File 'lib/rubu.rb', line 156</span>
296
+ <pre class="code"><span class="info file"># File 'lib/rubu.rb', line 165</span>
284
297
 
285
298
  <span class='kw'>def</span> <span class='id identifier rubyid_run'>run</span>
286
299
  <span class='kw'>begin</span>
@@ -306,7 +319,7 @@
306
319
  </div>
307
320
 
308
321
  <div id="footer">
309
- Generated on Fri Jun 29 10:04:07 2018 by
322
+ Generated on Sun Jul 1 17:48:17 2018 by
310
323
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
311
324
  0.8.7.6 (ruby-2.3.3).
312
325
  </div>
@@ -73,12 +73,12 @@
73
73
 
74
74
  <dt class="r1">Inherits:</dt>
75
75
  <dd class="r1">
76
- <span class="inheritName"><span class='object_link'><a href="Action.html" title="Rubu::Action (class)">Action</a></span></span>
76
+ <span class="inheritName"><span class='object_link'><a href="Move.html" title="Rubu::Move (class)">Move</a></span></span>
77
77
 
78
78
  <ul class="fullTree">
79
79
  <li>Object</li>
80
80
 
81
- <li class="next"><span class='object_link'><a href="Action.html" title="Rubu::Action (class)">Action</a></span></li>
81
+ <li class="next"><span class='object_link'><a href="Move.html" title="Rubu::Move (class)">Move</a></span></li>
82
82
 
83
83
  <li class="next">Rubu::ShellCommand</li>
84
84
 
@@ -120,8 +120,8 @@
120
120
 
121
121
  <h2>Instance Attribute Summary</h2>
122
122
 
123
- <h3 class="inherited">Attributes inherited from <span class='object_link'><a href="Action.html" title="Rubu::Action (class)">Action</a></span></h3>
124
- <p class="inherited"><span class='object_link'><a href="Action.html#errmsg-instance_method" title="Rubu::Action#errmsg (method)">#errmsg</a></span>, <span class='object_link'><a href="Action.html#output-instance_method" title="Rubu::Action#output (method)">#output</a></span>, <span class='object_link'><a href="Action.html#status-instance_method" title="Rubu::Action#status (method)">#status</a></span>, <span class='object_link'><a href="Action.html#subs-instance_method" title="Rubu::Action#subs (method)">#subs</a></span></p>
123
+ <h3 class="inherited">Attributes inherited from <span class='object_link'><a href="Move.html" title="Rubu::Move (class)">Move</a></span></h3>
124
+ <p class="inherited"><span class='object_link'><a href="Move.html#errmsg-instance_method" title="Rubu::Move#errmsg (method)">#errmsg</a></span>, <span class='object_link'><a href="Move.html#output-instance_method" title="Rubu::Move#output (method)">#output</a></span>, <span class='object_link'><a href="Move.html#status-instance_method" title="Rubu::Move#status (method)">#status</a></span>, <span class='object_link'><a href="Move.html#subs-instance_method" title="Rubu::Move#subs (method)">#subs</a></span></p>
125
125
 
126
126
 
127
127
 
@@ -175,7 +175,9 @@
175
175
 
176
176
 
177
177
 
178
- <span class="summary_desc"><div class='inline'></div></span>
178
+ <span class="summary_desc"><div class='inline'>
179
+ <p>Execution content.</p>
180
+ </div></span>
179
181
 
180
182
  </li>
181
183
 
@@ -192,8 +194,8 @@
192
194
 
193
195
 
194
196
 
195
- <h3 class="inherited">Methods inherited from <span class='object_link'><a href="Action.html" title="Rubu::Action (class)">Action</a></span></h3>
196
- <p class="inherited"><span class='object_link'><a href="Action.html#display-instance_method" title="Rubu::Action#display (method)">#display</a></span>, <span class='object_link'><a href="Action.html#error-instance_method" title="Rubu::Action#error (method)">#error</a></span>, <span class='object_link'><a href="Action.html#host-instance_method" title="Rubu::Action#host (method)">#host</a></span>, <span class='object_link'><a href="Action.html#host_in-instance_method" title="Rubu::Action#host_in (method)">#host_in</a></span>, <span class='object_link'><a href="Action.html#host_out-instance_method" title="Rubu::Action#host_out (method)">#host_out</a></span>, <span class='object_link'><a href="Action.html#pick-instance_method" title="Rubu::Action#pick (method)">#pick</a></span>, <span class='object_link'><a href="Action.html#use-instance_method" title="Rubu::Action#use (method)">#use</a></span></p>
197
+ <h3 class="inherited">Methods inherited from <span class='object_link'><a href="Move.html" title="Rubu::Move (class)">Move</a></span></h3>
198
+ <p class="inherited"><span class='object_link'><a href="Move.html#display-instance_method" title="Rubu::Move#display (method)">#display</a></span>, <span class='object_link'><a href="Move.html#error-instance_method" title="Rubu::Move#error (method)">#error</a></span>, <span class='object_link'><a href="Move.html#host-instance_method" title="Rubu::Move#host (method)">#host</a></span>, <span class='object_link'><a href="Move.html#host_in-instance_method" title="Rubu::Move#host_in (method)">#host_in</a></span>, <span class='object_link'><a href="Move.html#host_out-instance_method" title="Rubu::Move#host_out (method)">#host_out</a></span>, <span class='object_link'><a href="Move.html#use-instance_method" title="Rubu::Move#use (method)">#use</a></span></p>
197
199
  <div id="constructor_details" class="method_details_list">
198
200
  <h2>Constructor Details</h2>
199
201
 
@@ -223,13 +225,13 @@
223
225
  <pre class="lines">
224
226
 
225
227
 
226
- 115
227
- 116
228
- 117
229
- 118</pre>
228
+ 122
229
+ 123
230
+ 124
231
+ 125</pre>
230
232
  </td>
231
233
  <td>
232
- <pre class="code"><span class="info file"># File 'lib/rubu.rb', line 115</span>
234
+ <pre class="code"><span class="info file"># File 'lib/rubu.rb', line 122</span>
233
235
 
234
236
  <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span> <span class='id identifier rubyid_cmd'>cmd</span> <span class='rparen'>)</span>
235
237
  <span class='kw'>super</span><span class='lparen'>(</span><span class='rparen'>)</span>
@@ -256,20 +258,23 @@
256
258
 
257
259
 
258
260
 
259
- </h3><table class="source_code">
261
+ </h3><div class="docstring">
262
+ <div class="discussion">
263
+
264
+ <p>Execution content.</p>
265
+
266
+
267
+ </div>
268
+ </div>
269
+ <div class="tags">
270
+
271
+
272
+ </div><table class="source_code">
260
273
  <tr>
261
274
  <td>
262
275
  <pre class="lines">
263
276
 
264
277
 
265
- 120
266
- 121
267
- 122
268
- 123
269
- 124
270
- 125
271
- 126
272
- 127
273
278
  128
274
279
  129
275
280
  130
@@ -285,10 +290,18 @@
285
290
  140
286
291
  141
287
292
  142
288
- 143</pre>
293
+ 143
294
+ 144
295
+ 145
296
+ 146
297
+ 147
298
+ 148
299
+ 149
300
+ 150
301
+ 151</pre>
289
302
  </td>
290
303
  <td>
291
- <pre class="code"><span class="info file"># File 'lib/rubu.rb', line 120</span>
304
+ <pre class="code"><span class="info file"># File 'lib/rubu.rb', line 128</span>
292
305
 
293
306
  <span class='kw'>def</span> <span class='id identifier rubyid_run'>run</span>
294
307
  <span class='kw'>begin</span>
@@ -324,7 +337,7 @@
324
337
  </div>
325
338
 
326
339
  <div id="footer">
327
- Generated on Fri Jun 29 10:04:07 2018 by
340
+ Generated on Sun Jul 1 17:48:17 2018 by
328
341
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
329
342
  0.8.7.6 (ruby-2.3.3).
330
343
  </div>
@@ -99,7 +99,21 @@
99
99
  </dl>
100
100
  <div class="clear"></div>
101
101
 
102
+ <h2>Overview</h2><div class="docstring">
103
+ <div class="discussion">
104
+
105
+ <p>Persistent state of Rubu.</p>
106
+
107
+ <p>State maintains YAML based state file (if in use). The file include MD5
108
+ checksums of file content.</p>
102
109
 
110
+
111
+ </div>
112
+ </div>
113
+ <div class="tags">
114
+
115
+
116
+ </div>
103
117
  <h2>Constant Summary</h2>
104
118
 
105
119
  <dl class="constants">
@@ -148,7 +162,9 @@
148
162
 
149
163
 
150
164
 
151
- <span class="summary_desc"><div class='inline'></div></span>
165
+ <span class="summary_desc"><div class='inline'>
166
+ <p>Load state.</p>
167
+ </div></span>
152
168
 
153
169
  </li>
154
170
 
@@ -170,7 +186,9 @@
170
186
 
171
187
 
172
188
 
173
- <span class="summary_desc"><div class='inline'></div></span>
189
+ <span class="summary_desc"><div class='inline'>
190
+ <p>Check for existing checksum and update it if needed.</p>
191
+ </div></span>
174
192
 
175
193
  </li>
176
194
 
@@ -192,7 +210,9 @@
192
210
 
193
211
 
194
212
 
195
- <span class="summary_desc"><div class='inline'></div></span>
213
+ <span class="summary_desc"><div class='inline'>
214
+ <p>Generate MD5 checksum for file.</p>
215
+ </div></span>
196
216
 
197
217
  </li>
198
218
 
@@ -214,7 +234,9 @@
214
234
 
215
235
 
216
236
 
217
- <span class="summary_desc"><div class='inline'></div></span>
237
+ <span class="summary_desc"><div class='inline'>
238
+ <p>Save state.</p>
239
+ </div></span>
218
240
 
219
241
  </li>
220
242
 
@@ -237,20 +259,31 @@
237
259
 
238
260
 
239
261
 
240
- </h3><table class="source_code">
262
+ </h3><div class="docstring">
263
+ <div class="discussion">
264
+
265
+ <p>Load state.</p>
266
+
267
+
268
+ </div>
269
+ </div>
270
+ <div class="tags">
271
+
272
+
273
+ </div><table class="source_code">
241
274
  <tr>
242
275
  <td>
243
276
  <pre class="lines">
244
277
 
245
278
 
246
- 19
247
- 20
248
- 21
249
- 22
250
- 23</pre>
279
+ 25
280
+ 26
281
+ 27
282
+ 28
283
+ 29</pre>
251
284
  </td>
252
285
  <td>
253
- <pre class="code"><span class="info file"># File 'lib/rubu.rb', line 19</span>
286
+ <pre class="code"><span class="info file"># File 'lib/rubu.rb', line 25</span>
254
287
 
255
288
  <span class='kw'>def</span> <span class='const'>State</span><span class='period'>.</span><span class='id identifier rubyid_load'>load</span>
256
289
  <span class='kw'>if</span> <span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_exist?'>exist?</span><span class='lparen'>(</span> <span class='cvar'>@@state_file</span> <span class='rparen'>)</span>
@@ -274,11 +307,33 @@
274
307
  </h3><div class="docstring">
275
308
  <div class="discussion">
276
309
 
310
+ <p>Check for existing checksum and update it if needed.</p>
311
+
277
312
 
278
313
  </div>
279
314
  </div>
280
315
  <div class="tags">
316
+ <p class="tag_title">Parameters:</p>
317
+ <ul class="param">
281
318
 
319
+ <li>
320
+
321
+ <span class='name'>file</span>
322
+
323
+
324
+ <span class='type'></span>
325
+
326
+
327
+
328
+ &mdash;
329
+ <div class='inline'>
330
+ <p>File.</p>
331
+ </div>
332
+
333
+ </li>
334
+
335
+ </ul>
336
+
282
337
  <p class="tag_title">Returns:</p>
283
338
  <ul class="return">
284
339
 
@@ -299,22 +354,22 @@
299
354
  <pre class="lines">
300
355
 
301
356
 
302
- 29
303
- 30
304
- 31
305
- 32
306
- 33
307
- 34
308
- 35
309
- 36
310
- 37
311
- 38
312
- 39
313
- 40
314
- 41</pre>
357
+ 41
358
+ 42
359
+ 43
360
+ 44
361
+ 45
362
+ 46
363
+ 47
364
+ 48
365
+ 49
366
+ 50
367
+ 51
368
+ 52
369
+ 53</pre>
315
370
  </td>
316
371
  <td>
317
- <pre class="code"><span class="info file"># File 'lib/rubu.rb', line 29</span>
372
+ <pre class="code"><span class="info file"># File 'lib/rubu.rb', line 41</span>
318
373
 
319
374
  <span class='kw'>def</span> <span class='const'>State</span><span class='period'>.</span><span class='id identifier rubyid_md5_check_and_update?'>md5_check_and_update?</span><span class='lparen'>(</span> <span class='id identifier rubyid_file'>file</span> <span class='rparen'>)</span>
320
375
  <span class='kw'>if</span> <span class='cvar'>@@md5</span><span class='lbracket'>[</span> <span class='id identifier rubyid_file'>file</span> <span class='rbracket'>]</span>
@@ -343,18 +398,49 @@
343
398
 
344
399
 
345
400
 
346
- </h3><table class="source_code">
401
+ </h3><div class="docstring">
402
+ <div class="discussion">
403
+
404
+ <p>Generate MD5 checksum for file.</p>
405
+
406
+
407
+ </div>
408
+ </div>
409
+ <div class="tags">
410
+ <p class="tag_title">Parameters:</p>
411
+ <ul class="param">
412
+
413
+ <li>
414
+
415
+ <span class='name'>file</span>
416
+
417
+
418
+ <span class='type'></span>
419
+
420
+
421
+
422
+ &mdash;
423
+ <div class='inline'>
424
+ <p>File.</p>
425
+ </div>
426
+
427
+ </li>
428
+
429
+ </ul>
430
+
431
+
432
+ </div><table class="source_code">
347
433
  <tr>
348
434
  <td>
349
435
  <pre class="lines">
350
436
 
351
437
 
352
- 25
353
- 26
354
- 27</pre>
438
+ 34
439
+ 35
440
+ 36</pre>
355
441
  </td>
356
442
  <td>
357
- <pre class="code"><span class="info file"># File 'lib/rubu.rb', line 25</span>
443
+ <pre class="code"><span class="info file"># File 'lib/rubu.rb', line 34</span>
358
444
 
359
445
  <span class='kw'>def</span> <span class='const'>State</span><span class='period'>.</span><span class='id identifier rubyid_md5_gen'>md5_gen</span><span class='lparen'>(</span> <span class='id identifier rubyid_file'>file</span> <span class='rparen'>)</span>
360
446
  <span class='const'>Digest</span><span class='op'>::</span><span class='const'>MD5</span><span class='period'>.</span><span class='id identifier rubyid_hexdigest'>hexdigest</span><span class='lparen'>(</span> <span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_read'>read</span><span class='lparen'>(</span> <span class='id identifier rubyid_file'>file</span> <span class='rparen'>)</span> <span class='rparen'>)</span>
@@ -373,20 +459,31 @@
373
459
 
374
460
 
375
461
 
376
- </h3><table class="source_code">
462
+ </h3><div class="docstring">
463
+ <div class="discussion">
464
+
465
+ <p>Save state.</p>
466
+
467
+
468
+ </div>
469
+ </div>
470
+ <div class="tags">
471
+
472
+
473
+ </div><table class="source_code">
377
474
  <tr>
378
475
  <td>
379
476
  <pre class="lines">
380
477
 
381
478
 
382
- 13
383
- 14
384
- 15
385
- 16
386
- 17</pre>
479
+ 18
480
+ 19
481
+ 20
482
+ 21
483
+ 22</pre>
387
484
  </td>
388
485
  <td>
389
- <pre class="code"><span class="info file"># File 'lib/rubu.rb', line 13</span>
486
+ <pre class="code"><span class="info file"># File 'lib/rubu.rb', line 18</span>
390
487
 
391
488
  <span class='kw'>def</span> <span class='const'>State</span><span class='period'>.</span><span class='id identifier rubyid_save'>save</span>
392
489
  <span class='kw'>if</span> <span class='cvar'>@@md5</span><span class='period'>.</span><span class='id identifier rubyid_any?'>any?</span>
@@ -403,7 +500,7 @@
403
500
  </div>
404
501
 
405
502
  <div id="footer">
406
- Generated on Fri Jun 29 10:04:07 2018 by
503
+ Generated on Sun Jul 1 17:48:17 2018 by
407
504
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
408
505
  0.8.7.6 (ruby-2.3.3).
409
506
  </div>